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

All Superinterfaces:
InvocationContext
All Known Subinterfaces:
MutableCallbackContext, MutableRequestContext

public interface MutableInvocationContext
extends InvocationContext


Method Summary
<T> void
addAllParameters(java.lang.Class<T> parametersType, java.util.Map<java.lang.String,T> parameters)
          Adds parameters to the context.
 void setContentLength(long contentLength)
          Sets the content length of the request measured in bytes.
<T> void
setParameter(java.lang.String parameterName, java.lang.Class<T> parameterType, T parameterValue)
          Sets the context parameter with the given name.
<T> void
setParameter(java.lang.String parameterName, java.lang.reflect.Type parameterType, T parameterValue)
          Sets the context parameter with the given name.
 void setSecuritySubject(javax.security.auth.Subject subject)
          Sets the given Subject to be used by the callback
 void setTimeStamp(long timeStamp)
          Sets the difference, measured in milliseconds, between the time when the request was received and midnight, January 1, 1970 UTC.
 
Methods inherited from interface com.tibco.amf.platform.runtime.extension.context.InvocationContext
getContentLength, getContextID, getCorrelationID, getInterface, getOperationName, getParameter, getParameter, getParameters, getParentContextID, getSecuritySubject, getServiceName, getTimeStamp
 

Method Detail

setSecuritySubject

void setSecuritySubject(javax.security.auth.Subject subject)
Sets the given Subject to be used by the callback

Parameters:
subject - Subject to be used by the callback

addAllParameters

<T> void addAllParameters(java.lang.Class<T> parametersType,
                          java.util.Map<java.lang.String,T> parameters)
Adds parameters to the context.

Parameters:
parametersType - the type of the parameters to add
parameters - context parameters to add

setParameter

<T> void setParameter(java.lang.String parameterName,
                      java.lang.Class<T> parameterType,
                      T parameterValue)
Sets the context parameter with the given name.

Parameters:
parameterType - the java type of the parameter to set
parameterName - name of the parameter to set
parameterValue - value of the parameter to set

setParameter

<T> void setParameter(java.lang.String parameterName,
                      java.lang.reflect.Type parameterType,
                      T parameterValue)
Sets the context parameter with the given name.

Parameters:
parameterType - the java type of the parameter to set
parameterName - name of the parameter to set
parameterValue - value of the parameter to set

setTimeStamp

void setTimeStamp(long timeStamp)
Sets the difference, measured in milliseconds, between the time when the request was received and midnight, January 1, 1970 UTC.

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

setContentLength

void setContentLength(long contentLength)
Sets 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.

Parameters:
contentLength - the content length of the request measured in bytes


Copyright © 2010 TIBCO Software Inc. All Rights Reserved.