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.void
setAttribute<wbr>(oracle.security.am.common.utilities.constant.CommonAttribute attribute, Object value)
Sets the attribute.void
setErrorCode<wbr>(String code)
sets the error code.void
setToken<wbr>(GenericTransportToken token, boolean isVersioned)
Sets the token.void
setTransportSessionID<wbr>(String sessId)
Sets the session ID for the transport.void
unsetToken<wbr>(String tokenName)
Unset token.void
unsetToken<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:GenericTransportContext
Gets the attribute.- Returns:
- the attribute
-
getAttributeNames
Description copied from interface:GenericTransportContext
Gets the attribute names.- Returns:
- the attribute names
-
getAttributes
Description copied from interface:GenericTransportContext
Gets the attributes.- Returns:
- the attributes
-
getErrorCode
Description copied from interface:GenericTransportContext
returns 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:GenericTransportContext
Gets the parameter value.- Parameters:
parameterName
- the parameter name- Returns:
- the parameter value
-
getParameters
Description copied from interface:GenericTransportContext
Gets the parameters.- Returns:
- the parameters
-
getRequestURI
Description copied from interface:GenericTransportContext
Gets the request uri.- Returns:
- the request uri
-
getSessionStore
- Returns:
-
getToken
Description copied from interface:GenericTransportContext
Gets the token.- Parameters:
tokenName
- the token nameisVersioned
- the is versioned- Returns:
- the token
-
getTransportRequest
- Returns:
-
getTransportSession
Description copied from interface:GenericTransportContext
Gets the transport session.- Returns:
- the transport session
-
getTransportSessionID
Description copied from interface:GenericTransportContext
Set 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:GenericTransportContext
Sets the attribute.value
- the value
-
setErrorCode
Description copied from interface:GenericTransportContext
sets 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:GenericTransportContext
Sets the token.- Parameters:
token
- the tokenisVersioned
- the is versioned
-
setTransportSessionID
Description copied from interface:GenericTransportContext
Sets the session ID for the transport. Http Session ID for http sessions -
unsetToken
Description copied from interface:GenericTransportContext
Unset token.- Parameters:
tokenName
- the token name
-
unsetToken
Description copied from interface:GenericTransportContext
Unset token providing the token object -
getParameters
Description copied from interface:GenericTransportContext
Gets the parameters.- Returns:
- the parameters
-