org.codehaus.xfire.message.bridge
Class AbstractMessageBridge

java.lang.Object
  extended by org.codehaus.xfire.message.bridge.AbstractMessageBridge
All Implemented Interfaces:
MessageBridge
Direct Known Subclasses:
DocumentBridge, RPCEncodedBridge, WrappedBridge

public abstract class AbstractMessageBridge
extends java.lang.Object
implements MessageBridge

Basic message bridging functionality.

Author:
Dan Diephouse

Field Summary
protected  Operation operation
           
 
Constructor Summary
AbstractMessageBridge()
           
AbstractMessageBridge(MessageContext context)
           
 
Method Summary
 MessageContext getContext()
           
 Operation getOperation()
           
 javax.xml.stream.XMLStreamReader getRequestReader()
           
 javax.xml.stream.XMLStreamWriter getResponseWriter()
           
 ObjectService getService()
           
 TypeMapping getTypeMapping()
           
 void setContext(MessageContext context)
           
 void setOperation(Operation operation)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.codehaus.xfire.message.bridge.MessageBridge
read, write
 

Field Detail

operation

protected Operation operation
Constructor Detail

AbstractMessageBridge

public AbstractMessageBridge()

AbstractMessageBridge

public AbstractMessageBridge(MessageContext context)
Method Detail

getTypeMapping

public TypeMapping getTypeMapping()
Returns:
Returns the typeMappingRegistry.

getService

public ObjectService getService()
Returns:
Returns the service.

getContext

public MessageContext getContext()
Returns:
Returns the context.

setContext

public void setContext(MessageContext context)
Parameters:
context - The context to set.

getRequestReader

public javax.xml.stream.XMLStreamReader getRequestReader()

getResponseWriter

public javax.xml.stream.XMLStreamWriter getResponseWriter()
Returns:
Returns the response body.

getOperation

public Operation getOperation()
Specified by:
getOperation in interface MessageBridge
Returns:
The operation that is being invoked in this request.
See Also:
MessageBridge.getOperation()

setOperation

public void setOperation(Operation operation)
Parameters:
operation - The operation to set.