public abstract class AbstractOperationHandler extends java.lang.Object implements OperationHandler
| Modifier and Type | Field and Description |
|---|---|
protected static javax.xml.bind.JAXBContext |
JAXB_CONTEXT |
| Constructor and Description |
|---|
AbstractOperationHandler(ContextHandler contextHandler)
Default constructor that obtains an instance of the ContextHandler.
|
| Modifier and Type | Method and Description |
|---|---|
protected java.lang.Object |
callGetter(java.lang.String mname,
java.lang.Object context) |
protected ContextHandler |
getContextHandler() |
protected java.util.Map<java.net.URI,org.jboss.security.xacml.sunxacml.attr.AttributeValue> |
getEnvironment(javax.xml.ws.handler.soap.SOAPMessageContext context)
Obtains a map of environment Attributes.
|
protected java.util.Map<java.net.URI,org.jboss.security.xacml.sunxacml.attr.AttributeValue> |
getResources(javax.xml.ws.handler.soap.SOAPMessageContext context)
Obtains a map of resource Attributes.
|
protected javax.xml.soap.SOAPElement |
getSOAPRequestNode(javax.xml.ws.handler.soap.SOAPMessageContext context) |
protected java.lang.Object |
getSOAPRequestObjects(javax.xml.ws.handler.soap.SOAPMessageContext context)
Extracts the request as object from the context.
|
protected javax.xml.soap.SOAPElement |
getSOAPResponseNode(javax.xml.ws.handler.soap.SOAPMessageContext context) |
protected java.lang.Object |
getSOAPResponseObject(javax.xml.ws.handler.soap.SOAPMessageContext context) |
protected <T> java.util.List<T> |
getSOAPResponseObject(javax.xml.ws.handler.soap.SOAPMessageContext context,
java.lang.Class<T> clazz)
Extracts the return object from the context.
|
protected java.util.List<java.util.Map<java.net.URI,java.util.List<org.jboss.security.xacml.sunxacml.attr.AttributeValue>>> |
getSubjects(javax.xml.ws.handler.soap.SOAPMessageContext context)
Extracts the list of Subjects from the given context.
|
protected java.lang.String |
getUser(javax.xml.ws.handler.soap.SOAPMessageContext context) |
protected java.lang.String[] |
getUserRoles(javax.xml.ws.handler.soap.SOAPMessageContext context)
Returns the roles that the user has.
|
protected static void |
marshall(java.lang.Object unmarshalled,
javax.xml.soap.SOAPElement parent) |
protected void |
setSOAPRequestObjects(javax.xml.ws.handler.soap.SOAPMessageContext context,
java.util.List<javax.xml.soap.SOAPElement> params)
Sets the request parameters for a request.
|
protected void |
setSOAPResponseObject(javax.xml.ws.handler.soap.SOAPMessageContext context,
java.lang.Object newResponse)
Sets the return object for a response as the param.
|
protected static java.lang.Object |
unmarshall(javax.xml.soap.SOAPElement node) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waithandleRequest, handleResponsepublic AbstractOperationHandler(ContextHandler contextHandler) throws PEPException
PEPExceptionprotected java.lang.Object getSOAPRequestObjects(javax.xml.ws.handler.soap.SOAPMessageContext context)
context - the message context.org.apache.cxf.binding.soap.SoapFaultprotected javax.xml.soap.SOAPElement getSOAPRequestNode(javax.xml.ws.handler.soap.SOAPMessageContext context)
protected javax.xml.soap.SOAPElement getSOAPResponseNode(javax.xml.ws.handler.soap.SOAPMessageContext context)
protected java.lang.Object getSOAPResponseObject(javax.xml.ws.handler.soap.SOAPMessageContext context)
protected <T> java.util.List<T> getSOAPResponseObject(javax.xml.ws.handler.soap.SOAPMessageContext context,
java.lang.Class<T> clazz)
T - T - context - the message context.org.apache.cxf.binding.soap.SoapFaultprotected void setSOAPRequestObjects(javax.xml.ws.handler.soap.SOAPMessageContext context,
java.util.List<javax.xml.soap.SOAPElement> params)
context - the message contextparams - list of parameters to set in orderorg.apache.cxf.binding.soap.SoapFaultprotected void setSOAPResponseObject(javax.xml.ws.handler.soap.SOAPMessageContext context,
java.lang.Object newResponse)
context - the message contextparam - the object to set as the return objectorg.apache.cxf.binding.soap.SoapFaultprotected java.util.List<java.util.Map<java.net.URI,java.util.List<org.jboss.security.xacml.sunxacml.attr.AttributeValue>>> getSubjects(javax.xml.ws.handler.soap.SOAPMessageContext context)
context - the message contextorg.apache.cxf.binding.soap.SoapFaultprotected java.util.Map<java.net.URI,org.jboss.security.xacml.sunxacml.attr.AttributeValue> getEnvironment(javax.xml.ws.handler.soap.SOAPMessageContext context)
context - the message contextprotected java.util.Map<java.net.URI,org.jboss.security.xacml.sunxacml.attr.AttributeValue> getResources(javax.xml.ws.handler.soap.SOAPMessageContext context)
throws OperationHandlerException,
java.net.URISyntaxException
context - the message contextOperationHandlerExceptionjava.net.URISyntaxExceptionprotected ContextHandler getContextHandler()
protected java.lang.String[] getUserRoles(javax.xml.ws.handler.soap.SOAPMessageContext context)
context - the message contextprotected java.lang.String getUser(javax.xml.ws.handler.soap.SOAPMessageContext context)
protected java.lang.Object callGetter(java.lang.String mname,
java.lang.Object context)
throws java.lang.SecurityException,
java.lang.NoSuchMethodException,
java.lang.IllegalArgumentException,
java.lang.IllegalAccessException,
java.lang.reflect.InvocationTargetException
java.lang.SecurityExceptionjava.lang.NoSuchMethodExceptionjava.lang.IllegalArgumentExceptionjava.lang.IllegalAccessExceptionjava.lang.reflect.InvocationTargetExceptionprotected static java.lang.Object unmarshall(javax.xml.soap.SOAPElement node)
protected static void marshall(java.lang.Object unmarshalled,
javax.xml.soap.SOAPElement parent)
Copyright © 2014 DuraSpace. All Rights Reserved.