- 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
Packet
that represents a request, run it through aTube
line, 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
- UnconsumedPacket
that represents a request.wscd
-WebServiceContextDelegate
to 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
-TransportBackChannel
to be set toPacket
. See thewscd
parameter javadoc for why this is a parameter. Can be null.- Returns:
- Unconsumed
Packet
that represents a reply to the request. - Throws:
jakarta.xml.ws.WebServiceException
- This method does not throw aWebServiceException
. TheWSEndpoint
must always produce a faultMessage
for it.RuntimeException
- ARuntimeException
thrown 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.
-