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)
StreamInterceptor
interceptSourceRequest
in interface StreamInterceptor
axisCtx
- associated axis2MsgCtx of the requestpublic boolean sourceRequest(java.nio.ByteBuffer buffer, org.apache.axis2.context.MessageContext axisCtx)
StreamInterceptor
sourceRequest
in interface StreamInterceptor
buffer
- copy of data entering inaxisCtx
- associated axis2MsgCtxpublic boolean interceptTargetRequest(org.apache.axis2.context.MessageContext axisCtx)
StreamInterceptor
interceptTargetRequest
in interface StreamInterceptor
axisCtx
- associated axis2MsgCtx of the requestpublic void targetRequest(java.nio.ByteBuffer buffer, org.apache.axis2.context.MessageContext axisCtx)
StreamInterceptor
targetRequest
in interface StreamInterceptor
buffer
- copy of data being send outaxisCtx
- associated axis2MsgCtxpublic boolean interceptTargetResponse(org.apache.axis2.context.MessageContext axisCtx)
StreamInterceptor
interceptTargetResponse
in interface StreamInterceptor
axisCtx
- associated axis2MsgCtx of the responsepublic boolean targetResponse(java.nio.ByteBuffer buffer, org.apache.axis2.context.MessageContext axisCtx)
StreamInterceptor
targetResponse
in interface StreamInterceptor
buffer
- copy of data entering inaxisCtx
- associated axis2MsgCtxpublic boolean interceptSourceResponse(org.apache.axis2.context.MessageContext axisCtx)
StreamInterceptor
interceptSourceResponse
in interface StreamInterceptor
axisCtx
- associated axis2MsgCtx of the responsepublic void sourceResponse(java.nio.ByteBuffer buffer, org.apache.axis2.context.MessageContext axisCtx)
StreamInterceptor
sourceResponse
in interface StreamInterceptor
buffer
- copy of data leavingaxisCtx
- associated axis2MsgCtxpublic void addProperty(java.lang.String name, java.lang.Object value)
StreamInterceptor
addProperty
in interface StreamInterceptor
name
- property namevalue
- property valuepublic java.util.Map getProperties()
StreamInterceptor
getProperties
in interface StreamInterceptor
Copyright © 2005-2022 Apache Software Foundation. All Rights Reserved.