Package oracle.security.am.plugin.impl
Class PluginTransportContext
java.lang.Object
oracle.security.am.plugin.impl.AbstractPluginTransportContext
oracle.security.am.plugin.impl.PluginTransportContext
- All Implemented Interfaces:
GenericTransportContext
Handle to the underlying transport protocol.
The object will wrap the protocol specific object
and give a common interface for protocol agnostic handling.
In case of HTTP this object will hold the
HTTPRequest and HTTPResponse objects and will be
exposed in a protocol agnostic fashion.
- Since:
- OAM 11.1.1.2.0
-
Nested Class Summary
Nested classes/interfaces inherited from interface oracle.security.am.plugin.GenericTransportContext
GenericTransportContext.PARAM_TYPE -
Constructor Summary
ConstructorsConstructorDescriptionPluginTransportContext<wbr>(GenericTransportHandler transportHandler)Instantiates a new PluginTransportContext. -
Method Summary
Modifier and TypeMethodDescriptiongetAttribute<wbr>(oracle.security.am.common.utilities.constant.CommonAttribute attribute)Gets the attribute.Iterator<oracle.security.am.common.utilities.constant.CommonAttribute>Gets the attribute names.Gets the attributes.returns the error code.Gets the parameters.getParameters<wbr>(GenericTransportContext.PARAM_TYPE type)Gets the parameters.getParameterValue<wbr>(String parameterName)Gets the parameter value.Gets the request uri.Gets the token.getTransportSession<wbr>(boolean create)Gets the transport session.Set Session ID for the tranport session.voidsetAttribute<wbr>(oracle.security.am.common.utilities.constant.CommonAttribute attribute, Object value)Sets the attribute.voidsetErrorCode<wbr>(String code)sets the error code.voidsetToken<wbr>(GenericTransportToken token, boolean isVersioned)Sets the token.voidsetTransportSessionID<wbr>(String sessId)Sets the session ID for the transport.voidunsetToken<wbr>(String tokenName)Unset token.voidunsetToken<wbr>(GenericTransportToken token)Unset token providing the token object
-
Constructor Details
-
PluginTransportContext
Instantiates a new PluginTransportContext.- Parameters:
transportHandler- the transport handler
-
-
Method Details
-
getAttribute
public Object getAttribute<wbr>(oracle.security.am.common.utilities.constant.CommonAttribute attribute)Description copied from interface:GenericTransportContextGets the attribute.- Returns:
- the attribute
-
getAttributeNames
Description copied from interface:GenericTransportContextGets the attribute names.- Returns:
- the attribute names
-
getAttributes
Description copied from interface:GenericTransportContextGets the attributes.- Returns:
- the attributes
-
getErrorCode
Description copied from interface:GenericTransportContextreturns the error code. Error code will be used to disply the Error message at the client console. Error codes will be defined in the UI resource bundle.- Returns:
- the errorCode
-
getLocale
- Returns:
-
getParameterValue
Description copied from interface:GenericTransportContextGets the parameter value.- Parameters:
parameterName- the parameter name- Returns:
- the parameter value
-
getParameters
Description copied from interface:GenericTransportContextGets the parameters.- Returns:
- the parameters
-
getRequestURI
Description copied from interface:GenericTransportContextGets the request uri.- Returns:
- the request uri
-
getSessionStore
- Returns:
-
getToken
Description copied from interface:GenericTransportContextGets the token.- Parameters:
tokenName- the token nameisVersioned- the is versioned- Returns:
- the token
-
getTransportRequest
- Returns:
-
getTransportSession
Description copied from interface:GenericTransportContextGets the transport session.- Returns:
- the transport session
-
getTransportSessionID
Description copied from interface:GenericTransportContextSet Session ID for the tranport session.- Returns:
-
getUserAgent
- Returns:
-
getRequestMethod
- Returns:
-
setAttribute
public void setAttribute<wbr>(oracle.security.am.common.utilities.constant.CommonAttribute attribute, Object value)Description copied from interface:GenericTransportContextSets the attribute.value- the value
-
setErrorCode
Description copied from interface:GenericTransportContextsets the error code. Error code will be used to disply the Error message at the client console. Error codes will be defined in the UI resource bundle.- Parameters:
code- the errorCode to set
-
setToken
Description copied from interface:GenericTransportContextSets the token.- Parameters:
token- the tokenisVersioned- the is versioned
-
setTransportSessionID
Description copied from interface:GenericTransportContextSets the session ID for the transport. Http Session ID for http sessions -
unsetToken
Description copied from interface:GenericTransportContextUnset token.- Parameters:
tokenName- the token name
-
unsetToken
Description copied from interface:GenericTransportContextUnset token providing the token object -
getParameters
Description copied from interface:GenericTransportContextGets the parameters.- Returns:
- the parameters
-