org.apache.muse.core.routing
Class AbstractMessageHandler
java.lang.Object
org.apache.muse.core.routing.AbstractMessageHandler
- All Implemented Interfaces:
- MessageHandler
- Direct Known Subclasses:
- AddHandler, GetCurrentMessageHandler, GetDocumentHandler, GetHandler, GetMetadataHandler, GetMultipleHandler, NotifyHandler, QueryHandler, QueryRelationshipsHandler, ReflectionMessageHandler, SetHandler, SetTerminationTimeHandler, SubscribeHandler
public abstract class AbstractMessageHandler
- extends Object
- implements MessageHandler
AbstractMessageHandler is a convenience class that implements all of the
accessor methods of MessageHandler, leaving
only the serialization methods (fromXML(Element) and toXML(Object)).
- Author:
- Dan Jemiolo (danj)
Field Summary |
static Object[] |
EMPTY_REQUEST
An empty array that can be shared to represent requests with zero
parameters. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EMPTY_REQUEST
public static final Object[] EMPTY_REQUEST
- An empty array that can be shared to represent requests with zero
parameters.
AbstractMessageHandler
protected AbstractMessageHandler(String actionURI,
QName requestQName)
- Parameters:
actionURI
- The WS-A Action URI this handler is used for.requestQName
- The QName of the element that wraps parameters for incoming messages.
getAction
public String getAction()
- Specified by:
getAction
in interface MessageHandler
- Returns:
- The WS-A Action associated with the handler's operation.
getMethod
public Method getMethod()
- Specified by:
getMethod
in interface MessageHandler
- Returns:
- The Java method that should be used to execute the operation.
getRequestName
public final QName getRequestName()
- Specified by:
getRequestName
in interface MessageHandler
- Returns:
- The QName of the SOAP request element that deserializable
DOM Elements will be wrapped in.
getResponseName
public QName getResponseName()
- Specified by:
getResponseName
in interface MessageHandler
- Returns:
- The QName of the SOAP response element that deserializable
DOM Elements will be wrapped in.
setMethod
public void setMethod(Method method)
- Specified by:
setMethod
in interface MessageHandler
- Parameters:
method
- The Java method that should be used to execute the operation.
Copyright © 2005-2011 Apache Web Services - Muse. All Rights Reserved.