com.sap.conn.jco.server
Interface JCoServerContextInfo

All Known Subinterfaces:
JCoServerContext

public interface JCoServerContextInfo

JCoServerContextInfo provides additional information of the remote system and the context of the request.


Method Summary
 JCoServerCallType getCallType()
          Returns the type of the current call
 JCoAttributes getConnectionAttributes()
          Returns the attributes for the server connection over which the remote call is coming in.
 java.lang.String getConnectionID()
          Returns the id for the server connection over which the remote call is coming in.
 JCoRepository getRepository()
          Returns the reference to the repository instance used by the JCo server.
 JCoServer getServer()
          Returns the reference reference to the server instance handling the remote call.
 java.lang.String getSessionID()
          Returns the session id of the current session.
 java.lang.String getTID()
          Retunrs the TID if the call coming in was sent in "background task".
 JCoUnitIdentifier getUnitIdentifier()
          Returns the unit identifier if the call coming in was sent as "background unit".
 boolean isInTransaction()
          Returns true if the call coming in was sent in "background task" or as "background unit".
 boolean isStatefulSession()
          Returns true if the current session is a stateful session, false otherwise.
 

Method Detail

getConnectionAttributes

JCoAttributes getConnectionAttributes()
Returns the attributes for the server connection over which the remote call is coming in.

Returns:
attributes for the server connection over which the remote call is coming in.

getConnectionID

java.lang.String getConnectionID()
Returns the id for the server connection over which the remote call is coming in.

Returns:
id for the server connection over which the remote call is coming in.

getRepository

JCoRepository getRepository()
Returns the reference to the repository instance used by the JCo server.

Returns:
reference to the repository instance used by the JCo server.

getServer

JCoServer getServer()
Returns the reference reference to the server instance handling the remote call.

Returns:
reference to the server instance handling the remote call.

getSessionID

java.lang.String getSessionID()
Returns the session id of the current session.

Returns:
the session id of the current session.

getTID

java.lang.String getTID()
Retunrs the TID if the call coming in was sent in "background task". Otherwise it returns null.

Returns:
TID if the call coming in was sent in "background task".

getUnitIdentifier

JCoUnitIdentifier getUnitIdentifier()
Returns the unit identifier if the call coming in was sent as "background unit". Otherwise it returns null.

Returns:
unit identifier if the call coming in was sent as "background unit".

isInTransaction

boolean isInTransaction()
Returns true if the call coming in was sent in "background task" or as "background unit".

Returns:
true if the call coming in was sent in "background task" or as "background unit".

getCallType

JCoServerCallType getCallType()
Returns the type of the current call

Returns:
call type.
See Also:
JCoServerCallType

isStatefulSession

boolean isStatefulSession()
Returns true if the current session is a stateful session, false otherwise.

Returns:
true if the current session is a stateful session


Copyright © 2008-2014 SAP AG. All Rights Reserved.