org.codehaus.xfire.handler
Interface EndpointHandler

All Superinterfaces:
Handler
All Known Implementing Classes:
ObjectServiceHandler

public interface EndpointHandler
extends Handler

By virtue of XFire being stream based, a service can not write its response until the very end of processing. So a service which needs to write response headers but do so first before writing the SOAP Body. The writeResponse method tells an Endpoint that it is now okay (i.e. there have been no Faults) to write the response to the OutputStream (if there is an response to the sender at all) or to another endpoint.

If a Service does not wishes to write its response immediately when reading the incoming stream, it may do so and not implement the writeResponse method. The service must then realize that the response Handler pipeline will not be able to outgoing stream.

Author:
Dan Diephouse

Field Summary
 
Fields inherited from interface org.codehaus.xfire.handler.Handler
ROLE
 
Method Summary
 boolean hasResponse(MessageContext context)
           
 void writeResponse(MessageContext context)
           
 
Methods inherited from interface org.codehaus.xfire.handler.Handler
getRoles, getUnderstoodHeaders, handleFault, invoke
 

Method Detail

hasResponse

boolean hasResponse(MessageContext context)

writeResponse

void writeResponse(MessageContext context)
                   throws XFireFault
Throws:
XFireFault