public class LoggingStreamInterceptor extends DefaultStreamInterceptor
<interceptors xmlns:svns="http://org.wso2.securevault/configuration">
<interceptor class="org.apache.synapse.transport.passthru.LoggingStreamInterceptor">
<parameter name="charset" value="ISO-8859-1"/>
<parameter name="enableInterception" value="true"/>
</interceptor>
</interceptors>
Constructor and Description |
---|
LoggingStreamInterceptor() |
Modifier and Type | Method and Description |
---|---|
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
|
void |
setCharset(java.lang.String charset) |
void |
setEnableInterception(boolean enableInterception) |
boolean |
sourceRequest(java.nio.ByteBuffer buffer,
org.apache.axis2.context.MessageContext ctx)
Handles the request data coming in to the engine from the client
|
void |
sourceResponse(java.nio.ByteBuffer buffer,
org.apache.axis2.context.MessageContext ctx)
Handles the response data leaving out of the engine
|
void |
targetRequest(java.nio.ByteBuffer buffer,
org.apache.axis2.context.MessageContext ctx)
Handles the request data leaving out of the engine
|
boolean |
targetResponse(java.nio.ByteBuffer buffer,
org.apache.axis2.context.MessageContext ctx)
Handles the response data coming in to the engine from the back end
|
addProperty, getProperties
public boolean interceptSourceRequest(org.apache.axis2.context.MessageContext axisCtx)
StreamInterceptor
interceptSourceRequest
in interface StreamInterceptor
interceptSourceRequest
in class DefaultStreamInterceptor
axisCtx
- associated axis2MsgCtx of the requestpublic boolean sourceRequest(java.nio.ByteBuffer buffer, org.apache.axis2.context.MessageContext ctx)
StreamInterceptor
sourceRequest
in interface StreamInterceptor
sourceRequest
in class DefaultStreamInterceptor
buffer
- copy of data entering inctx
- associated axis2MsgCtxpublic boolean interceptTargetRequest(org.apache.axis2.context.MessageContext axisCtx)
StreamInterceptor
interceptTargetRequest
in interface StreamInterceptor
interceptTargetRequest
in class DefaultStreamInterceptor
axisCtx
- associated axis2MsgCtx of the requestpublic void targetRequest(java.nio.ByteBuffer buffer, org.apache.axis2.context.MessageContext ctx)
StreamInterceptor
targetRequest
in interface StreamInterceptor
targetRequest
in class DefaultStreamInterceptor
buffer
- copy of data being send outctx
- associated axis2MsgCtxpublic boolean interceptTargetResponse(org.apache.axis2.context.MessageContext axisCtx)
StreamInterceptor
interceptTargetResponse
in interface StreamInterceptor
interceptTargetResponse
in class DefaultStreamInterceptor
axisCtx
- associated axis2MsgCtx of the responsepublic boolean targetResponse(java.nio.ByteBuffer buffer, org.apache.axis2.context.MessageContext ctx)
StreamInterceptor
targetResponse
in interface StreamInterceptor
targetResponse
in class DefaultStreamInterceptor
buffer
- copy of data entering inctx
- associated axis2MsgCtxpublic boolean interceptSourceResponse(org.apache.axis2.context.MessageContext axisCtx)
StreamInterceptor
interceptSourceResponse
in interface StreamInterceptor
interceptSourceResponse
in class DefaultStreamInterceptor
axisCtx
- associated axis2MsgCtx of the responsepublic void sourceResponse(java.nio.ByteBuffer buffer, org.apache.axis2.context.MessageContext ctx)
StreamInterceptor
sourceResponse
in interface StreamInterceptor
sourceResponse
in class DefaultStreamInterceptor
buffer
- copy of data leavingctx
- associated axis2MsgCtxpublic void setCharset(java.lang.String charset)
public void setEnableInterception(boolean enableInterception)
Copyright © 2005-2021 Apache Software Foundation. All Rights Reserved.