abstract class HandlerProcessor<C extends MessageUpdatableContext> extends Object
Modifier and Type | Class and Description |
---|---|
static class |
HandlerProcessor.Direction |
static class |
HandlerProcessor.RequestOrResponse |
Modifier and Type | Field and Description |
---|---|
(package private) WSBinding |
binding |
(package private) boolean |
isClient |
(package private) static Logger |
logger |
Modifier | Constructor and Description |
---|---|
protected |
HandlerProcessor(HandlerTube owner,
WSBinding binding,
List<? extends Handler> chain)
The handlers that are passed in will be sorted into
logical and soap handlers.
|
Modifier and Type | Method and Description |
---|---|
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(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,
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
|
protected HandlerProcessor(HandlerTube owner, WSBinding binding, List<? extends Handler> chain)
chain
- A list of handler objects, which can
be protocol or logical handlers.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, ProtocolException exception)
void closeHandlers(MessageContext context, int start, int end)
Copyright (c) 1997-2012 Oracle and/or its affiliates. All rights reserved.