com.tibco.amf.platform.runtime.extension.context
Interface InvocationContext

All Known Subinterfaces:
CallbackContext, MutableCallbackContext, MutableInvocationContext, MutableRequestContext, RequestContext

public interface InvocationContext

Defines the common part of RequestContext and CallbackContext.


Method Summary
 long getContentLength()
          Provides the content length of the request measured in bytes.
 java.lang.String getContextID()
          Provides the identifier for this context.
 java.lang.String getCorrelationID()
          Provides the identifier use to correlate this invocation with others.
 com.tibco.amf.sca.model.extensionpoints.Interface getInterface()
          Gets the interface that defines the operation of this context.
 javax.xml.namespace.QName getOperationName()
          Gets the operation name of this context.
<T> T
getParameter(java.lang.String parameterName, java.lang.Class<T> parameterType)
          Provides the parameter with the given associated with the context.
<T> T
getParameter(java.lang.String parameterName, java.lang.reflect.Type parameterType)
          Provides the parameter with the given associated with this context.
<T> java.util.Map<java.lang.String,T>
getParameters(java.lang.Class<T> parametersType)
          Provides parameters associated with the context.
 java.lang.String getParentContextID()
          Provides the identifier use to correlate this invocation with its direct parent.
 javax.security.auth.Subject getSecuritySubject()
          Provides the security subject for the invocation.
 java.lang.String getServiceName()
          Returns the name of the service that was invoked.
 long getTimeStamp()
          Provides the the difference, measured in milliseconds, between the time when the request was received and midnight, January 1, 1970 UTC.
 

Method Detail

getInterface

com.tibco.amf.sca.model.extensionpoints.Interface getInterface()
Gets the interface that defines the operation of this context.

Returns:
the interface that defines the operation of this context

getOperationName

javax.xml.namespace.QName getOperationName()
Gets the operation name of this context.

Returns:
the operation name of this context

getServiceName

java.lang.String getServiceName()
Returns the name of the service that was invoked.

Returns:
the name of the service that was invoked

getSecuritySubject

javax.security.auth.Subject getSecuritySubject()
Provides the security subject for the invocation.

Returns:
the Subject for the invocation

getParameters

<T> java.util.Map<java.lang.String,T> getParameters(java.lang.Class<T> parametersType)
Provides parameters associated with the context.

Parameters:
parametersType - the java type of the parameters
Returns:
context parameters

getParameter

<T> T getParameter(java.lang.String parameterName,
                   java.lang.Class<T> parameterType)
Provides the parameter with the given associated with the context.

Parameters:
parameterName - name of the parameter to be returned
parameterType - the java type of the parameter
Returns:
context parameter with the given name

getParameter

<T> T getParameter(java.lang.String parameterName,
                   java.lang.reflect.Type parameterType)
Provides the parameter with the given associated with this context.

Parameters:
parameterName - name of the parameter to be returned
parameterType - the java type of the parameter
Returns:
context parameter with the given name

getCorrelationID

java.lang.String getCorrelationID()
Provides the identifier use to correlate this invocation with others.

Returns:
the identifier use to correlate this invocation with others

getParentContextID

java.lang.String getParentContextID()
Provides the identifier use to correlate this invocation with its direct parent.

Returns:
the identifier use to correlate this invocation with its direct parent

getContextID

java.lang.String getContextID()
Provides the identifier for this context.

Returns:
the identifier for this context

getTimeStamp

long getTimeStamp()
Provides the the difference, measured in milliseconds, between the time when the request was received and midnight, January 1, 1970 UTC. Endpoints are responsible to set the time in the context.

Returns:
the difference, measured in milliseconds, between the time when the request was received and midnight, January 1, 1970 UTC

getContentLength

long getContentLength()
Provides the content length of the request measured in bytes. Endpoints are responsible to set the content length in the context. The content length is the number of bytes that the message occupies in its wire format.

Returns:
the content length of the request measured in bytes


Copyright © 2010 TIBCO Software Inc. All Rights Reserved.