Package 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
Modifier and TypeMethodDescriptionReturns the type of the current call.Returns the attributes for the server connection over which the remote call is coming in.Returns the id for the server connection over which the remote call is coming in.Returns the attributes of the incoming background unit over the server.Returns the queue name sent by the backend, if currently a qRFC LUW is being processed.String[]
Returns the queue names sent by the backend, if currently a bgRFC LUW is being processed.Returns the reference to the repository instance used by the JCo server.Returns the reference to the server instance handling the remote call.Returns the session id of the current session.getTID()
Returns the TID if the call coming in was sent in "background task".Returns the unit identifier if the call coming in was sent as "background unit".boolean
Returns true if the call coming in was sent in "background task" or as "background unit".boolean
Returns true if the current session is a stateful session, false otherwise.
-
Method Details
-
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.
-
getFunctionUnitAttributes
JCoBackgroundUnitAttributes getFunctionUnitAttributes()Returns the attributes of the incoming background unit over the server.- Returns:
- attributes of the incoming background unit over the server.
- Since:
- JCo 3.1.0
-
getQueueName
String getQueueName()Returns the queue name sent by the backend, if currently a qRFC LUW is being processed. Otherwise it is null.- Returns:
- queue name sent by the backend, if currently a qRFC LUW is being processed.
- Since:
- JCo 3.1.8
-
getQueueNames
String[] getQueueNames()Returns the queue names sent by the backend, if currently a bgRFC LUW is being processed. Otherwise it is null.- Returns:
- queue names sent by the backend, if currently a bgRFC LUW is being processed.
- Since:
- JCo 3.1.7
-
getConnectionID
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 to the server instance handling the remote call.- Returns:
- reference to the server instance handling the remote call.
-
getSessionID
String getSessionID()Returns the session id of the current session.- Returns:
- the session id of the current session.
-
getTID
String getTID()Returns 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:
-
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
-