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
Fields inherited from interface org.codehaus.xfire.handler.Handler |
ROLE |
hasResponse
boolean hasResponse(MessageContext context)
writeResponse
void writeResponse(MessageContext context)
throws XFireFault
- Throws:
XFireFault