public abstract class DefaultStreamInterceptor extends java.lang.Object implements StreamInterceptor
StreamInterceptor. A stream interceptor can be written by
extending and overding the necessary methods of this class.
For an example seeLoggingStreamInterceptor| Constructor and Description |
|---|
DefaultStreamInterceptor() |
| Modifier and Type | Method and Description |
|---|---|
void |
addProperty(java.lang.String name,
java.lang.Object value)
Add an interceptor property
|
java.util.Map |
getProperties()
Get all interceptor properties
|
boolean |
interceptSourceRequest(org.apache.axis2.context.MessageContext axisCtx)
Logic to determine whether to intercept the source request
|
boolean |
interceptSourceResponse(org.apache.axis2.context.MessageContext axisCtx)
Logic to determine whether to intercept the source response
|
boolean |
interceptTargetRequest(org.apache.axis2.context.MessageContext axisCtx)
Logic to determine whether to intercept the target request
|
boolean |
interceptTargetResponse(org.apache.axis2.context.MessageContext axisCtx)
Logic to determine whether to intercept the target response
|
boolean |
sourceRequest(java.nio.ByteBuffer buffer,
org.apache.axis2.context.MessageContext axisCtx)
Handles the request data coming in to the engine from the client
|
void |
sourceResponse(java.nio.ByteBuffer buffer,
org.apache.axis2.context.MessageContext axisCtx)
Handles the response data leaving out of the engine
|
void |
targetRequest(java.nio.ByteBuffer buffer,
org.apache.axis2.context.MessageContext axisCtx)
Handles the request data leaving out of the engine
|
boolean |
targetResponse(java.nio.ByteBuffer buffer,
org.apache.axis2.context.MessageContext axisCtx)
Handles the response data coming in to the engine from the back end
|
public boolean interceptSourceRequest(org.apache.axis2.context.MessageContext axisCtx)
StreamInterceptorinterceptSourceRequest in interface StreamInterceptoraxisCtx - associated axis2MsgCtx of the requestpublic boolean sourceRequest(java.nio.ByteBuffer buffer,
org.apache.axis2.context.MessageContext axisCtx)
StreamInterceptorsourceRequest in interface StreamInterceptorbuffer - copy of data entering inaxisCtx - associated axis2MsgCtxpublic boolean interceptTargetRequest(org.apache.axis2.context.MessageContext axisCtx)
StreamInterceptorinterceptTargetRequest in interface StreamInterceptoraxisCtx - associated axis2MsgCtx of the requestpublic void targetRequest(java.nio.ByteBuffer buffer,
org.apache.axis2.context.MessageContext axisCtx)
StreamInterceptortargetRequest in interface StreamInterceptorbuffer - copy of data being send outaxisCtx - associated axis2MsgCtxpublic boolean interceptTargetResponse(org.apache.axis2.context.MessageContext axisCtx)
StreamInterceptorinterceptTargetResponse in interface StreamInterceptoraxisCtx - associated axis2MsgCtx of the responsepublic boolean targetResponse(java.nio.ByteBuffer buffer,
org.apache.axis2.context.MessageContext axisCtx)
StreamInterceptortargetResponse in interface StreamInterceptorbuffer - copy of data entering inaxisCtx - associated axis2MsgCtxpublic boolean interceptSourceResponse(org.apache.axis2.context.MessageContext axisCtx)
StreamInterceptorinterceptSourceResponse in interface StreamInterceptoraxisCtx - associated axis2MsgCtx of the responsepublic void sourceResponse(java.nio.ByteBuffer buffer,
org.apache.axis2.context.MessageContext axisCtx)
StreamInterceptorsourceResponse in interface StreamInterceptorbuffer - copy of data leavingaxisCtx - associated axis2MsgCtxpublic void addProperty(java.lang.String name,
java.lang.Object value)
StreamInterceptoraddProperty in interface StreamInterceptorname - property namevalue - property valuepublic java.util.Map getProperties()
StreamInterceptorgetProperties in interface StreamInterceptorCopyright © 2005-2021 Apache Software Foundation. All Rights Reserved.