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, getPropertiespublic boolean interceptSourceRequest(org.apache.axis2.context.MessageContext axisCtx)
StreamInterceptorinterceptSourceRequest in interface StreamInterceptorinterceptSourceRequest in class DefaultStreamInterceptoraxisCtx - associated axis2MsgCtx of the requestpublic boolean sourceRequest(java.nio.ByteBuffer buffer,
org.apache.axis2.context.MessageContext ctx)
StreamInterceptorsourceRequest in interface StreamInterceptorsourceRequest in class DefaultStreamInterceptorbuffer - copy of data entering inctx - associated axis2MsgCtxpublic boolean interceptTargetRequest(org.apache.axis2.context.MessageContext axisCtx)
StreamInterceptorinterceptTargetRequest in interface StreamInterceptorinterceptTargetRequest in class DefaultStreamInterceptoraxisCtx - associated axis2MsgCtx of the requestpublic void targetRequest(java.nio.ByteBuffer buffer,
org.apache.axis2.context.MessageContext ctx)
StreamInterceptortargetRequest in interface StreamInterceptortargetRequest in class DefaultStreamInterceptorbuffer - copy of data being send outctx - associated axis2MsgCtxpublic boolean interceptTargetResponse(org.apache.axis2.context.MessageContext axisCtx)
StreamInterceptorinterceptTargetResponse in interface StreamInterceptorinterceptTargetResponse in class DefaultStreamInterceptoraxisCtx - associated axis2MsgCtx of the responsepublic boolean targetResponse(java.nio.ByteBuffer buffer,
org.apache.axis2.context.MessageContext ctx)
StreamInterceptortargetResponse in interface StreamInterceptortargetResponse in class DefaultStreamInterceptorbuffer - copy of data entering inctx - associated axis2MsgCtxpublic boolean interceptSourceResponse(org.apache.axis2.context.MessageContext axisCtx)
StreamInterceptorinterceptSourceResponse in interface StreamInterceptorinterceptSourceResponse in class DefaultStreamInterceptoraxisCtx - associated axis2MsgCtx of the responsepublic void sourceResponse(java.nio.ByteBuffer buffer,
org.apache.axis2.context.MessageContext ctx)
StreamInterceptorsourceResponse in interface StreamInterceptorsourceResponse in class DefaultStreamInterceptorbuffer - 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.