Interface GlobalHandlerMessageContext
-
public interface GlobalHandlerMessageContextThe interface GlobalHandlerMessageContext abstracts the message context that is processed by a global handler in the handle method.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <T> Tadapt(java.lang.Class<T> clazz)Using this method to adapt the GlobalHandlerMessageContext to javax.xml.ws.handler.soap.SOAPMessageContext or javax.xml.ws.handler.LogicalMessageContext.booleancontainsProperty(java.lang.String name)Retrieve whether this GlobalHandlerMessageContext object contains the specified property.java.lang.StringgetEngineType()Retrieves the engine type of the processing.java.lang.StringgetFlowType()Retrieves flow type of the processing.javax.servlet.http.HttpServletRequestgetHttpServletRequest()Retrieve HttpServletRequest from this GlobalHandlerMessageContext objectjavax.servlet.http.HttpServletResponsegetHttpServletResponse()Retrieve HttpServletResponse from this GlobalHandlerMessageContext object.java.lang.ObjectgetProperty(java.lang.String name)Retrieves value of the specified property.java.util.Iterator<java.lang.String>getPropertyNames()Retrieves all the property names available in this GlobalHandlerMessageContext object.booleanisClientSide()Retrieves whether the processing is in ClientSide.booleanisServerSide()Retrieves whether the processing is in ServerSide.voidremoveProperty(java.lang.String name)Remove the specified property from this GlobalHandlerMessageContext object.voidsetProperty(java.lang.String name, java.lang.Object value)Associates the specified value with the specified property.
-
-
-
Method Detail
-
isServerSide
boolean isServerSide()
Retrieves whether the processing is in ServerSide.- Returns:
- true if is in Server side; false otherwise.
-
isClientSide
boolean isClientSide()
Retrieves whether the processing is in ClientSide.- Returns:
- true if is in Client side; false otherwise.
-
getEngineType
java.lang.String getEngineType()
Retrieves the engine type of the processing.- Returns:
- Engine Type of the processing, the possible value is : "JAX_WS", "JAX_RS", "ALL"
-
getFlowType
java.lang.String getFlowType()
Retrieves flow type of the processing.- Returns:
- Flow Type of the processing, the possible value is : "IN", "OUT", "INOUT"
-
getProperty
java.lang.Object getProperty(java.lang.String name)
Retrieves value of the specified property.- Parameters:
name- the name of the property to retrieve.- Returns:
- the value associated with the named property or null if no such property exists.
-
setProperty
void setProperty(java.lang.String name, java.lang.Object value)Associates the specified value with the specified property. If there was already a value associated with this property, the old value is replaced.- Parameters:
name- the property with which the specified value is to be associated.value- the value to be associated with the specified property.
-
getPropertyNames
java.util.Iterator<java.lang.String> getPropertyNames()
Retrieves all the property names available in this GlobalHandlerMessageContext object.- Returns:
- an iterator over all the property names in this GlobalHandlerMessageContext.
-
removeProperty
void removeProperty(java.lang.String name)
Remove the specified property from this GlobalHandlerMessageContext object.- Parameters:
name- the property names which will be removed from this GlobalHandlerMessageContext.
-
containsProperty
boolean containsProperty(java.lang.String name)
Retrieve whether this GlobalHandlerMessageContext object contains the specified property.- Parameters:
name- the property name- Returns:
- true is this GlobalHandlerMessageContext object contains the specified property; false otherwise.
-
getHttpServletRequest
javax.servlet.http.HttpServletRequest getHttpServletRequest()
Retrieve HttpServletRequest from this GlobalHandlerMessageContext object- Returns:
- the HttpServletRequest from this GlobalHandlerMessageContext or null if no HttpServletRequest exists
-
getHttpServletResponse
javax.servlet.http.HttpServletResponse getHttpServletResponse()
Retrieve HttpServletResponse from this GlobalHandlerMessageContext object.- Returns:
- the HttpServletResponse from this GlobalHandlerMessageContext or null if no HttpServletRequest exists.
-
adapt
<T> T adapt(java.lang.Class<T> clazz)
Using this method to adapt the GlobalHandlerMessageContext to javax.xml.ws.handler.soap.SOAPMessageContext or javax.xml.ws.handler.LogicalMessageContext.- Parameters:
clazz- the class which this GlobalHandlerMessageContext will be adpat to- Returns:
- The apapted messageContext or null if the clazz is none of above.
-
-