com.sap.mw.jco
Class IMiddleware

java.lang.Object
  |
  +--com.sap.mw.jco.IMiddleware

public abstract class IMiddleware
extends java.lang.Object

This class is never directly used by application programmers.

The class provides methods for middleware implementors and serves as a proxy between the low-level protocol handling routines (e.g RFC, HTTP/SOAP) and the API exposed to the programmer.


Inner Class Summary
static interface IMiddleware.IClient
          Middleware methods needed to implement a client
static interface IMiddleware.IServer
          Middleware methods needed to implement a server
 
Constructor Summary
IMiddleware()
           
 
Method Summary
abstract  IMiddleware.IClient getClientInterface()
          Returns the middleware interface for a client
 java.lang.String getName()
          Returns the name of the middleware layer
 java.util.Properties getProperties()
          Returns properties as set by this implementation
 java.lang.String getProperty(java.lang.String key)
          Returns a property for the specified key
abstract  java.lang.String[][] getPropertyInfo()
          Returns information about the properties which are understood by the the implementation.
abstract  IMiddleware.IServer getServerInterface()
          Returns the middleware interface for a server
 java.lang.String getVersion()
          Returns the version of the middleware layer
 void setProperty(java.lang.String key, java.lang.String value)
          Sets a property for this middleware implementation
abstract  void setTraceLevel(int trace_level)
          Sets the trace level
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IMiddleware

public IMiddleware()
Method Detail

getPropertyInfo

public abstract java.lang.String[][] getPropertyInfo()
Returns information about the properties which are understood by the the implementation. Each element of the array should be a set of two Strings containg the name and description of a property. For example
  String pinfo[][] = {
     { "jco.middleware.name",    "sapjcorfc" },
     { "jco.middleware.version", "2.0" },
  };
  

getProperties

public final java.util.Properties getProperties()
Returns properties as set by this implementation

getProperty

public final java.lang.String getProperty(java.lang.String key)
Returns a property for the specified key
Parameters:
key - the name of the property
Returns:
the value of the property or null if not found

setProperty

public void setProperty(java.lang.String key,
                        java.lang.String value)
Sets a property for this middleware implementation
Parameters:
key - the name of the property
value - the value of the property or null to remove a property

getName

public final java.lang.String getName()
Returns the name of the middleware layer
Returns:
the name of the middleware layer

getVersion

public final java.lang.String getVersion()
Returns the version of the middleware layer
Returns:
the version of the middleware layer

setTraceLevel

public abstract void setTraceLevel(int trace_level)
Sets the trace level
Parameters:
trace_level - the trace_level

getClientInterface

public abstract IMiddleware.IClient getClientInterface()
Returns the middleware interface for a client
Returns:
the interface of a middleware client implementation

getServerInterface

public abstract IMiddleware.IServer getServerInterface()
Returns the middleware interface for a server
Returns:
the interface of a middleware server implementation