|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcgl.narada.wsinfra.deployment.Filter
public abstract class Filter
This abstract class implements the functionality of a filter within our deployment environment. This class implements the WsMessageFlow interface. Note that the only method that needs to be implemented by filters extending this base class is the processMessage class. For examples of filters extending this baseclass, please see the filters in the cgl.narada.wsinfra. apps package; here, examples pertaining to WSE and WSRM filters have been included.
| Field Summary | |
|---|---|
static int |
INPUT
|
static int |
INPUT_OUTPUT
|
static int |
OUTPUT
|
| Fields inherited from interface cgl.narada.wsinfra.WsMessageFlow |
|---|
FROM_APPLICATION, FROM_NETWORK |
| Constructor Summary | |
|---|---|
Filter()
|
|
| Method Summary | |
|---|---|
void |
dispose()
Dipose this filter. |
void |
enrouteToApplication(SOAPMessage soapMessage)
Routes a message enroute to the application. |
void |
enrouteToNetwork(SOAPMessage soapMessage)
Routes a message enroute to the network. |
boolean |
equals(Filter obj)
Compares two objects for equality. |
int |
getDirection()
Retrieves the direction of messages that this filter operates upon. |
FilterPipeline |
getFilterPipeline()
Retrieve the filter pipeline that this filter is a part of. |
String |
getIdentifier()
Retrieve the identifier of the filter. |
int |
getPositionInFilterPipeline()
Retrieves the position of this filter in the pipeline. |
int |
hashCode()
Generates a hash code for the receiver. |
boolean |
isInputFilter()
Is this an input filter. |
boolean |
isOutputFilter()
Is this an output filter |
abstract boolean |
processMessage(SOAPContext soapContext,
int direction)
This method returns a boolean which indicates whether further processing should continue or if it should stop. |
void |
setDirection(int directionOfFlow)
Sets the direction of messages that this filter should operate upon. |
void |
setFilterPipeline(FilterPipeline filterPipeline)
Retrieve the filter pipeline that this filter is a part of. |
void |
setIdentifier(String identifier)
Set the identifier of the filter. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int INPUT
public static final int OUTPUT
public static final int INPUT_OUTPUT
| Constructor Detail |
|---|
public Filter()
| Method Detail |
|---|
public final void setFilterPipeline(FilterPipeline filterPipeline)
public final FilterPipeline getFilterPipeline()
public final int getPositionInFilterPipeline()
throws DeploymentException
DeploymentExceptionpublic final void setIdentifier(String identifier)
public final String getIdentifier()
public final void setDirection(int directionOfFlow)
throws DeploymentException
DeploymentExceptionpublic final boolean isInputFilter()
public final boolean isOutputFilter()
public final int getDirection()
public final void enrouteToApplication(SOAPMessage soapMessage)
throws MessageFlowException
enrouteToApplication in interface WsMessageFlowMessageFlowException
public final void enrouteToNetwork(SOAPMessage soapMessage)
throws MessageFlowException
enrouteToNetwork in interface WsMessageFlowMessageFlowException
public abstract boolean processMessage(SOAPContext soapContext,
int direction)
throws UnknownExchangeException,
IncorrectExchangeException,
MessageFlowException,
ProcessingException
UnknownExchangeException
IncorrectExchangeException
MessageFlowException
ProcessingException
public final void dispose()
throws DeploymentException
DeploymentExceptionpublic final boolean equals(Filter obj)
obj - the Object to compare with
Hashtablepublic final int hashCode()
hashCode in class Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||