Package com.sun.xml.ws.api.server
Interface WSEndpoint.PipeHead
- Enclosing class:
- WSEndpoint<T>
public static interface WSEndpoint.PipeHead
Represents a resource local to a thread.
See
WSEndpoint class javadoc for more discussion about
this.-
Method Summary
Modifier and TypeMethodDescriptionprocess(Packet request, WebServiceContextDelegate wscd, TransportBackChannel tbc) Processes a request and produces a reply.
-
Method Details
-
process
@NotNull Packet process(@NotNull Packet request, @Nullable WebServiceContextDelegate wscd, @Nullable TransportBackChannel tbc) Processes a request and produces a reply.This method takes a
Packetthat represents a request, run it through aTubeline, eventually pass it to the user implementation code, which produces a reply, then run that through the pipeline again, and eventually return it as a return value.- Parameters:
request- UnconsumedPacketthat represents a request.wscd-WebServiceContextDelegateto be set toPacket. (we didn't have to take this and instead just ask the caller to set toPacket.webServiceContextDelegate, but that felt too error prone.)tbc-TransportBackChannelto be set toPacket. See thewscdparameter javadoc for why this is a parameter. Can be null.- Returns:
- Unconsumed
Packetthat represents a reply to the request. - Throws:
javax.xml.ws.WebServiceException- This method does not throw aWebServiceException. TheWSEndpointmust always produce a faultMessagefor it.RuntimeException- ARuntimeExceptionthrown from this method, includingWebServiceException, must be treated as a bug in the code (including JAX-WS and all the pipe implementations), not an operator error by the user.Therefore, it should be recorded by the caller in a way that allows developers to fix a bug.
-