|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.fhg.igd.semoa.webservice.HandlerDescriptor
Specifies how to deploy an Axis handler using
WebserviceService
.
Nested Class Summary | |
protected class |
HandlerDescriptor.AxisEngineNamespaceContext
|
Field Summary | |
static String |
GLOBAL_REQUEST
Specifies a deployment of a global handler into the request flow. |
private static String |
GLOBAL_REQUEST_PATH
|
static String |
GLOBAL_RESPONSE
Specifies a deployment of a global handler into the response flow. |
private static String |
GLOBAL_RESPONSE_PATH
|
private static Logger |
log_
The Logger instance for this class |
private String |
name_
|
private Map |
parameters_
|
private String |
path_
|
private static String |
REQUEST_SUFFIX
|
private static String |
RESPONSE_SUFFIX
|
private static String |
SERVICE_PATH
|
static String |
SERVICE_REQUEST
Specifies a deployment of a service handler into the request flow. |
static String |
SERVICE_RESPONSE
Specifies a deployment of a service handler into the response flow. |
private static String |
TRANSPORT_PATH
|
static String |
TRANSPORT_REQUEST
Specifies a deployment of a transport handler into the request flow. |
static String |
TRANSPORT_RESPONSE
Specifies a deployment of a transport handler into the response flow. |
private String |
type_
|
private static String |
USR_HANDLER
|
Constructor Summary | |
|
HandlerDescriptor(Class handlerClass,
Map parameters,
String context,
String identifier)
Creates a new HandlerDescriptor . |
|
HandlerDescriptor(Class handlerClass,
String context,
String identifier)
Creates a new HandlerDescriptor . |
private |
HandlerDescriptor(Node node)
|
Method Summary | |
private static boolean |
checkDeployment(List deployedHandlers,
HandlerDescriptor descriptor)
|
private Node |
createHandlerNode(Document document)
|
private Node |
createParameterNode(Document document,
String name,
String value)
|
private String |
createPath(String context,
String identifier)
|
static String |
createType(Class type)
|
boolean |
equals(Object object)
|
String |
getContext()
|
String |
getIdentifier()
|
String |
getName()
|
Map |
getParameters()
|
String |
getPath()
|
private String |
getPath(Node node)
|
String |
getType()
|
String |
insertInto(org.apache.axis.AxisEngine engine)
|
private static String |
insertNSPrefix(String path)
|
private boolean |
isUserHandler()
|
static List |
listHandlers(org.apache.axis.AxisEngine engine)
|
String |
removeFrom(org.apache.axis.AxisEngine engine)
|
void |
setName(String name)
|
void |
setParameters(Map parameters)
|
private void |
setPath(String path)
|
void |
setType(String type)
|
String |
toString()
|
private boolean |
validateContext(String context)
|
private boolean |
validateHandlerClass(Class handlerClass)
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final String GLOBAL_RESPONSE
public static final String GLOBAL_REQUEST
public static final String SERVICE_RESPONSE
public static final String SERVICE_REQUEST
public static final String TRANSPORT_RESPONSE
public static final String TRANSPORT_REQUEST
private static final String USR_HANDLER
private static final String GLOBAL_RESPONSE_PATH
private static final String GLOBAL_REQUEST_PATH
private static final String SERVICE_PATH
private static final String TRANSPORT_PATH
private static final String RESPONSE_SUFFIX
private static final String REQUEST_SUFFIX
private static Logger log_
Logger
instance for this class
private String path_
private String name_
private String type_
private Map parameters_
Constructor Detail |
public HandlerDescriptor(Class handlerClass, String context, String identifier) throws IllegalArgumentException
HandlerDescriptor
.
handlerClass
- the Class
of the handler to deploy. This
Class
is required to implement the
org.axis.apache.Handler
interface.context
- the String
representation of the desired
deployment context. Valid context values are:
GLOBAL_RESPONSE
GLOBAL_REQUEST
SERVICE_RESPONSE
SERVICE_REQUEST
TRANSPORT_RESPONSE
TRANSPORT_REQUEST
identifier
- further specifies the deployment location. The exact
meaning of identifier
depends on the specified
context
:
GLOBAL_RESPONSE
and the
GLOBAL_REQUEST
contexts
SERVICE_RESPONSE
and the SERVICE_REQUEST
contexts
TRANSPORT_RESPONSE
and TRANSPORT_REQUEST
contexts
IllegalArgumentException
- if handlerClass
does not
implement the org.axis.apache.Handler
interface or
context
is not equal to one of the specified values.public HandlerDescriptor(Class handlerClass, Map parameters, String context, String identifier) throws IllegalArgumentException
HandlerDescriptor
.
handlerClass
- the Class
of the handler to deploy. This
Class
is required to implement the
org.axis.apache.Handler
interface.parameters
- the handlers parameters. Both keys and values are
expected to be instances of String
.context
- the String
representation of the desired
deployment context. Valid context values are:
GLOBAL_RESPONSE
GLOBAL_REQUEST
SERVICE_RESPONSE
SERVICE_REQUEST
TRANSPORT_RESPONSE
TRANSPORT_REQUEST
identifier
- further specifies the deployment location. The exact
meaning of identifier
depends on the specified
context
:
GLOBAL_RESPONSE
and the
GLOBAL_REQUEST
contexts
SERVICE_RESPONSE
and the SERVICE_REQUEST
contexts
TRANSPORT_RESPONSE
and TRANSPORT_REQUEST
contexts
IllegalArgumentException
- if handlerClass
does not
implement the org.axis.apache.Handler
interface or
context
is not equal to one of the specified values.private HandlerDescriptor(Node node)
Method Detail |
public String getName()
public Map getParameters()
public String getPath()
public String getType()
public void setName(String name)
public void setParameters(Map parameters)
public void setType(String type)
public boolean equals(Object object)
public String toString()
public String insertInto(org.apache.axis.AxisEngine engine) throws AxisException, ObjectExistsException
AxisException
ObjectExistsException
public String removeFrom(org.apache.axis.AxisEngine engine) throws AxisException
AxisException
public String getContext()
public String getIdentifier()
public static String createType(Class type)
public static List listHandlers(org.apache.axis.AxisEngine engine) throws AxisException
AxisException
private static boolean checkDeployment(List deployedHandlers, HandlerDescriptor descriptor)
private Node createHandlerNode(Document document)
private Node createParameterNode(Document document, String name, String value)
private String createPath(String context, String identifier)
private String getPath(Node node)
private static String insertNSPrefix(String path)
private boolean isUserHandler()
private void setPath(String path)
private boolean validateContext(String context)
private boolean validateHandlerClass(Class handlerClass)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |