public interface ICallInfo
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAccessPointEndpoint()
Accessor for the URL where the SOAP client sent the request to.
|
java.lang.String |
getAccessPointID()
Accessor for the unique ID of the Access Point that was invoked.
|
java.lang.String |
getAccessPointName()
Accessor for the name of the Access Point being invoked.
|
java.util.Map<? extends java.lang.Object,? extends java.lang.Object> |
getAuthenticationAttributes()
Accessor to the Map containing all the authentication attributes of the user making the request.
|
java.lang.Object |
getAuthenticationToken()
Accessor to the com.actional.security.plugin.IAuthenticationToken.
|
java.util.Map<java.lang.Object,java.lang.Object> |
getAuthorizationAttributes()
Accessor to the Map containing all the authorization attributes of the user making the request.
|
java.util.List<java.lang.String> |
getAuthorizedRolesName()
Accessor for the name of the Roles of the principal.
|
java.lang.String |
getFailureMessage()
Accessor.
|
java.lang.String |
getFullSecurityID()
Accessor for the full security ID of the user making the request.
|
byte[] |
getMessageContent()
Accessor for the actual XML message that is being processed.
|
org.w3c.dom.Document |
getMessageContentAsDocument(boolean writable)
Accessor for a read-only the actual XML message that is being processed as
Document object
NOTE - (do not pass true ) for 'writable' parameter. |
org.w3c.dom.Element |
getMessageHeaders(DOMType domType)
Accessor for an element that contains of all the headers in the XML document.
|
MessageType |
getMessageType()
Accessor for the type of message being processed.
|
IMitigationMgr |
getMitigationMgr()
Accessor for the implementation of
IMitigationMgr |
IMsgFields |
getMsgFields()
Accessor for the implementation of
IMsgFields |
boolean |
getOperationIsOneWay()
Accessor.
|
java.lang.String |
getOperationName()
Accessor for the name of the operation being invoked.
|
java.lang.String |
getOriginAddress()
Accessor for the address of the machine sending the request.
|
java.util.Map<java.lang.String,java.util.List<java.lang.Object>> |
getParameters()
Returns the parameters map.
|
java.util.List<?> |
getRequestCredentials()
Accessor to the collected on the request.
|
java.lang.Long |
getRequestID()
Accessor for the ID of the request being processed.
|
java.lang.String |
getRoleName()
Accessor for the name of the Role of the principal.
|
java.util.Map<java.lang.Object,java.lang.Object> |
getRoundTripScratchPad()
Accessor for a "round trip" scratch pad where interceptors can put information for future use.
|
java.util.Map<java.lang.Object,java.lang.Object> |
getScratchPad()
Accessor for a scratch pad where interceptors can put information for future use.
|
java.lang.String |
getSecurityID()
Accessor for the security ID of the user making the request.
|
java.lang.String |
getSvcGroupID()
Accessor for the ID of the service group being called.
|
java.lang.String |
getSvcGroupName()
Accessor for the name of the service group being invoked.
|
java.lang.String |
getTargetAddress()
Accessor for the address of the machine receiving the request.
|
java.util.Map<java.lang.String,java.lang.Object> |
getTransportProperties()
Accessor for the Map containing all the properties read from the transport.
|
int |
getTransportStatusCode()
Returns the transport status code.
|
IXmlDocument |
getXmlDocument(DOMType domType)
Accessor which allows having read-only access to the XML document.
|
IXmlDocument |
getXmlDocument(DOMType domType,
boolean onRequest)
Accessor which allows having read-only access to the XML document.
|
void |
setMessageContent(byte[] val,
boolean onRequest)
Mutator for the actual XML message that is being processed.
|
void |
setMessageContent(org.w3c.dom.Document val,
boolean onRequest)
Mutator for the actual XML message that is being processed as
Document object. |
void |
setMessageType(java.lang.String contentType,
boolean onRequest)
Sets the message type.
|
void |
setParameters(java.util.Map<java.lang.String,java.util.List<java.lang.Object>> parameters)
Sets the parameters map.
|
void |
setTransportProperties(java.util.Map<java.lang.String,java.lang.Object> val,
boolean onRequest)
Mutator for the Map containing all the properties read from the transport.
|
void |
setTransportStatusCode(int statusCode)
Sets the transport status code.
|
void |
setXmlDocument(IXmlDocument val,
boolean onRequest)
Mutator which allows saving the modified XML document.
|
java.util.Map<java.lang.Object,java.lang.Object> getScratchPad()
Map
Map
- the scratch padjava.util.Map<java.lang.Object,java.lang.Object> getRoundTripScratchPad()
Map
- the scratch padjava.lang.String getSvcGroupName()
java.lang.String getAccessPointID()
java.lang.String getOperationName()
java.lang.Long getRequestID()
Long
- request IDMessageType getMessageType()
MessageType
byte[] getMessageContent()
setMessageContent(byte[], boolean)
to save the modified copy.org.w3c.dom.Document getMessageContentAsDocument(boolean writable) throws java.lang.Exception
Document
object
true
) for 'writable' parameter.
setMessageContent(org.w3c.dom.Document, boolean)
to save the modified copy.writable
- Must always be false
Document
object or null if the number of bytes exceeds the memory limit.java.lang.Exception
void setMessageContent(byte[] val, boolean onRequest)
getMessageContent()
.
If modifications will be made, a copy must be made of this value.
ReturnStatusType
will be ReturnStatusType.CONTINUE
or null (which is accepted as equivalent to
ReturnStatusType.CONTINUE
).val
- byte[] with the message content.onRequest
- must be true only if a request was intercepted and request processing
will continue.void setMessageContent(org.w3c.dom.Document val, boolean onRequest)
Document
object.
getMessageContentAsDocument(boolean)
.
If modifications will be made, a copy must be made of the returned document.
ReturnStatusType
will be ReturnStatusType.CONTINUE
or null (which is accepted as equivalent to
ReturnStatusType.CONTINUE
).val
- Document object of the message content.onRequest
- must be true only if a request was intercepted and request processing
will continue.java.util.Map<java.lang.String,java.lang.Object> getTransportProperties()
setTransportProperties(java.util.Map<java.lang.String, java.lang.Object>, boolean)
to save the result.Map
- the transport propertiesvoid setTransportProperties(java.util.Map<java.lang.String,java.lang.Object> val, boolean onRequest)
ReturnStatusType
will be ReturnStatusType.CONTINUE
or null (which is accepted as equivalent to
ReturnStatusType.CONTINUE
).val
- Map
- the transport propertiesonRequest
- must be true only if a request was intercepted and
request processing will continue.java.util.Map<java.lang.String,java.util.List<java.lang.Object>> getParameters() throws java.lang.Exception
java.lang.Exception
void setParameters(java.util.Map<java.lang.String,java.util.List<java.lang.Object>> parameters) throws java.lang.Exception
getMessageType()
== MessageType.REQUEST
.parameters
- the parameters map. Cannot be null. Note that it is critical to keep the original
order of the parameters. As such, it is highly recommended to use a LinkedHashMap
or functionally equivalent class to set the parameters.java.lang.Exception
java.lang.IllegalStateException
void setMessageType(java.lang.String contentType, boolean onRequest)
contentType
- the content type of the message.onRequest
- true to set the content type of the request, false to set the content type of
the reply.void setTransportStatusCode(int statusCode)
ReturnStatusType.REPLY
or ReturnStatusType.ERROR
. On replies,
the transport status code should only be set when the interceptor sets a return status of
ReturnStatusType.CONTINUE
, ReturnStatusType.REPLY
or ReturnStatusType.ERROR
.
IInterceptor.IInvokeContext.setReturnStatus(ReturnStatusType)
.
IllegalStateException
.statusCode
- the reply status code. Currently ignored for JMS.int getTransportStatusCode()
boolean getOperationIsOneWay()
java.lang.String getAccessPointEndpoint()
java.lang.String getOriginAddress()
java.lang.String getTargetAddress()
java.lang.String getSvcGroupID()
java.lang.String getAccessPointName()
java.lang.String getFailureMessage()
MessageType
is set to MessageType.FAULT_INTERNAL
or
MessageType.FAULT_EXTERNAL
, this returns the reason for the failure.String
the reason for failure.java.lang.String getRoleName()
java.util.List<java.lang.String> getAuthorizedRolesName()
java.lang.String getSecurityID()
java.lang.String getFullSecurityID()
java.util.Map<? extends java.lang.Object,? extends java.lang.Object> getAuthenticationAttributes()
Map
- the authentication attributesjava.util.Map<java.lang.Object,java.lang.Object> getAuthorizationAttributes()
Map
- the authorization attributesjava.lang.Object getAuthenticationToken()
java.util.List<?> getRequestCredentials()
IMitigationMgr getMitigationMgr()
IMitigationMgr
IMitigationMgr
IMsgFields getMsgFields()
IMsgFields
IMsgFields
IXmlDocument getXmlDocument(DOMType domType)
IXmlDocument
are:
IXmlDocument.getBytesInMemory()
IXmlDocument.getBytesIfAllInMemory(boolean)
getDOM(false)
(do not pass true
)IXmlDocument.execute(IXPathEvaluator, boolean)
(do not pass true
in the second argument)IXmlDocument.hasBytes()
IXmlDocument.hasDOM()
IXmlDocument.hasDTM()
IXmlDocument.getScratchPad()
IXmlDocument.getMonitor()
IXmlDocument.getDOM(boolean)
or the byte array returned
by IXmlDocument.getBytesInMemory()
or IXmlDocument.getBytesIfAllInMemory(boolean)
can lead to unpredictable results.
Map
returned by
IXmlDocument.getScratchPad()
.
domType
- Either DOMType.XML_DOCUMENT_READ_WRITE
to obtain a document which
one can modify or DOMType.XML_DOCUMENT_READ_ONLY
IXmlDocument
The XML documentIXmlDocument getXmlDocument(DOMType domType, boolean onRequest)
IXmlDocument
are:
IXmlDocument.getBytesInMemory()
IXmlDocument.getBytesIfAllInMemory(boolean)
getDOM(false)
(do not pass true
)IXmlDocument.execute(IXPathEvaluator, boolean)
(do not pass true
in the second argument)IXmlDocument.hasBytes()
IXmlDocument.hasDOM()
IXmlDocument.hasDTM()
IXmlDocument.getScratchPad()
IXmlDocument.getMonitor()
IXmlDocument.getDOM(boolean)
or the byte array returned
by IXmlDocument.getBytesInMemory()
or IXmlDocument.getBytesIfAllInMemory(boolean)
can lead to unpredictable results.
Map
returned by
IXmlDocument.getScratchPad()
.
domType
- Either DOMType.XML_DOCUMENT_READ_WRITE
to obtain a document which
one can modify or DOMType.XML_DOCUMENT_READ_ONLY
onRequest
- true to get the request IXmlDocument, false to get the response IXmlDocument.IXmlDocument
The XML documentvoid setXmlDocument(IXmlDocument val, boolean onRequest)
DOMType.XML_DOCUMENT_READ_WRITE
.
ReturnStatusType
will be ReturnStatusType.CONTINUE
or null (which is accepted as equivalent to
ReturnStatusType.CONTINUE
).val
- The modified XML document.onRequest
- must be true only if a request was intercepted and request processing
will continue.org.w3c.dom.Element getMessageHeaders(DOMType domType)
Node.appendChild(org.w3c.dom.Node)
which modify the structure of the DOM
document must only be called, if the message headers were retrieved using
DOMType.MESSAGE_HEADERS_CREATE
or DOMType.MESSAGE_HEADERS_READ_WRITE
.
Otherwise, an exception might be thrown.
domType
- One of DOMType.MESSAGE_HEADERS_READ_ONLY
,
DOMType.MESSAGE_HEADERS_READ_WRITE
, or
DOMType.MESSAGE_HEADERS_CREATE
if one wants an empty
Element
returned if the element does not exist.Element
the element with the message headers or null.