|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcgl.narada.wsinfra.deployment.impl.FilterPipelineImpl
This class implements all the capabilities outlined within the FilterPipeline interface.
| Constructor Summary | |
FilterPipelineImpl()
|
|
| Method Summary | |
void |
addFilter(Filter filter)
Add a filter to this filter pipeline. |
void |
addFilterAt(Filter filter,
int position)
Add a filter to this filter pipeline at a specific position. |
Filter[] |
getFilters()
Retrive an enumeration of the filters that are part of the filter pipeline. |
String |
getIdentifier()
Retrieve the identifier of the filter pipeline. |
int |
getNumberOfInputFilters()
Gets the total number of input filters. |
int |
getNumberOfOutputFilters()
Gets the total number of output filters. |
int |
getPositionInFilterPipeline(Filter filter)
Retrieves the position of the filter within the filter pipeline, irrespective of whether it is an input filter or output filter or both. |
int |
getPositionInFilterPipeline(Filter filter,
boolean input)
Gets the position of a given filter within the FilterPipeline. |
int |
getTotalNumberOfFilters()
Gets the num of filters that comprise the filter pipeline. |
void |
injectMessageTowardsApplication(SOAPMessage soapMessage,
Filter filter)
Injects a message based on the filter's position within the filter pipeline towards the application. |
void |
injectMessageTowardsApplication(SOAPMessage soapMessage,
int position)
Injects a message at a specific location within the filter pipeline towards the application. |
void |
injectMessageTowardsNetwork(SOAPMessage soapMessage,
Filter filter)
Injects a message at the filter immediately following this filter in the path TOWARDS the NETWORK. |
void |
injectMessageTowardsNetwork(SOAPMessage soapMessage,
int position)
Injects a message at a specific location within the filter pipeline. |
boolean |
isPartOfPipeline(Filter filter)
Checks to see if a given filter is part of this pipeline. |
void |
moveFilter(Filter filter,
int position)
This method moves a filter within a filter chain to the specified position. |
void |
processMessageFromApplication(SOAPMessage soapMessage)
Process a message received from the application. |
void |
processMessageFromNetwork(SOAPMessage soapMessage)
Process a message received over the network. |
void |
registerNetworkSubstrate(NetworkSubstrate networkSubstrate)
Register a networking substrate for this filter pipeline. |
void |
registerServiceMessageListener(ServiceMessageListener serviceMessageListener)
Register the service message listener for this filter pipeline. |
void |
removeFilter(Filter filter)
Remove a filter from this filter-pipeline. |
void |
removeFilterAt(int position)
Remove a filter at the specified location. |
void |
replaceFilter(Filter filter,
int position)
This method replaces the existing filter at a given position with the specified one. |
void |
setIdentifier(String pipelineIdentifier)
Set the identifier of the filter pipeline. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public FilterPipelineImpl()
| Method Detail |
public void registerServiceMessageListener(ServiceMessageListener serviceMessageListener)
throws DeploymentException
registerServiceMessageListener in interface FilterPipelineDeploymentException
public void registerNetworkSubstrate(NetworkSubstrate networkSubstrate)
throws DeploymentException
registerNetworkSubstrate in interface FilterPipelineDeploymentException
public void setIdentifier(String pipelineIdentifier)
throws DeploymentException
setIdentifier in interface FilterPipelineDeploymentExceptionpublic String getIdentifier()
getIdentifier in interface FilterPipelinepublic boolean isPartOfPipeline(Filter filter)
isPartOfPipeline in interface FilterPipeline
public void addFilter(Filter filter)
throws DeploymentException
addFilter in interface FilterPipelineDeploymentException
public void addFilterAt(Filter filter,
int position)
throws DeploymentException
addFilterAt in interface FilterPipelineDeploymentException
public void removeFilter(Filter filter)
throws DeploymentException
removeFilter in interface FilterPipelineDeploymentException
public void removeFilterAt(int position)
throws DeploymentException
removeFilterAt in interface FilterPipelineDeploymentException
public void moveFilter(Filter filter,
int position)
throws DeploymentException
moveFilter in interface FilterPipelineDeploymentException
public void replaceFilter(Filter filter,
int position)
throws DeploymentException
replaceFilter in interface FilterPipelineDeploymentExceptionpublic void processMessageFromNetwork(SOAPMessage soapMessage)
processMessageFromNetwork in interface FilterPipeline
public void injectMessageTowardsApplication(SOAPMessage soapMessage,
Filter filter)
throws DeploymentException
injectMessageTowardsApplication in interface FilterPipelineDeploymentException
public void injectMessageTowardsApplication(SOAPMessage soapMessage,
int position)
throws DeploymentException
injectMessageTowardsApplication in interface FilterPipelineDeploymentException
public void processMessageFromApplication(SOAPMessage soapMessage)
throws DeploymentException,
MessageFlowException,
ProcessingException
processMessageFromApplication in interface FilterPipelineDeploymentException
MessageFlowException
ProcessingException
public void injectMessageTowardsNetwork(SOAPMessage soapMessage,
Filter filter)
throws DeploymentException,
MessageFlowException,
ProcessingException
injectMessageTowardsNetwork in interface FilterPipelineDeploymentException
MessageFlowException
ProcessingException
public void injectMessageTowardsNetwork(SOAPMessage soapMessage,
int position)
throws DeploymentException,
MessageFlowException,
ProcessingException
injectMessageTowardsNetwork in interface FilterPipelineDeploymentException
MessageFlowException
ProcessingException
public int getPositionInFilterPipeline(Filter filter)
throws DeploymentException
getPositionInFilterPipeline in interface FilterPipelineDeploymentException
public int getPositionInFilterPipeline(Filter filter,
boolean input)
throws DeploymentException
getPositionInFilterPipeline in interface FilterPipelineDeploymentExceptionpublic int getTotalNumberOfFilters()
getTotalNumberOfFilters in interface FilterPipelinepublic int getNumberOfInputFilters()
getNumberOfInputFilters in interface FilterPipelinepublic int getNumberOfOutputFilters()
getNumberOfOutputFilters in interface FilterPipelinepublic Filter[] getFilters()
getFilters in interface FilterPipeline
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||