|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.xml.ws.handler.HandlerProcessor<C>
abstract class HandlerProcessor<C extends MessageUpdatableContext>
Nested Class Summary | |
---|---|
static class |
HandlerProcessor.Direction
|
static class |
HandlerProcessor.RequestOrResponse
|
Field Summary | |
---|---|
(package private) WSBinding |
binding
|
(package private) boolean |
isClient
|
(package private) static Logger |
logger
|
Constructor Summary | |
---|---|
protected |
HandlerProcessor(HandlerTube owner,
WSBinding binding,
List<? extends javax.xml.ws.handler.Handler> chain)
The handlers that are passed in will be sorted into logical and soap handlers. |
Method Summary | |
---|---|
boolean |
callHandlersRequest(HandlerProcessor.Direction direction,
C context,
boolean responseExpected)
TODO: Just putting thoughts, Current contract: This is Called during Request Processing. |
void |
callHandlersResponse(HandlerProcessor.Direction direction,
C context,
boolean isFault)
TODO: Just putting thoughts, Current contract: This is Called during Response Processing. |
(package private) void |
closeHandlers(javax.xml.ws.handler.MessageContext context,
int start,
int end)
Calls close on the handlers from the starting index through the ending index (inclusive). |
(package private) int |
getIndex()
Gives index of the handler in the chain to know what handlers in the chain are invoked |
(package private) abstract void |
insertFaultMessage(C context,
javax.xml.ws.ProtocolException exception)
When a ProtocolException is thrown, this is called. |
(package private) void |
setIndex(int i)
This is called when a handler returns false or throws a RuntimeException |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
boolean isClient
static final Logger logger
WSBinding binding
Constructor Detail |
---|
protected HandlerProcessor(HandlerTube owner, WSBinding binding, List<? extends javax.xml.ws.handler.Handler> chain)
chain
- A list of handler objects, which can
be protocol or logical handlers.Method Detail |
---|
int getIndex()
void setIndex(int i)
public boolean callHandlersRequest(HandlerProcessor.Direction direction, C context, boolean responseExpected)
RuntimeException
- this happens when a RuntimeException occurs during
handleMessage during Request processing or
during remedy action 2)
CurrentPipe should NOT call nextPipe.process() and throw the
exception to the previous Pipe
While closing handlers, check getIndex() to get the invoked
handlers.public void callHandlersResponse(HandlerProcessor.Direction direction, C context, boolean isFault)
abstract void insertFaultMessage(C context, javax.xml.ws.ProtocolException exception)
void closeHandlers(javax.xml.ws.handler.MessageContext context, int start, int end)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |