Class DefaultStreamInterceptor

    • Constructor Detail

      • DefaultStreamInterceptor

        public DefaultStreamInterceptor()
    • Method Detail

      • interceptSourceRequest

        public boolean interceptSourceRequest​(org.apache.axis2.context.MessageContext axisCtx)
        Description copied from interface: StreamInterceptor
        Logic to determine whether to intercept the source request
        Specified by:
        interceptSourceRequest in interface StreamInterceptor
        Parameters:
        axisCtx - associated axis2MsgCtx of the request
        Returns:
        intercept source request or not
      • sourceRequest

        public boolean sourceRequest​(ByteBuffer buffer,
                                     org.apache.axis2.context.MessageContext axisCtx)
        Description copied from interface: StreamInterceptor
        Handles the request data coming in to the engine from the client
        Specified by:
        sourceRequest in interface StreamInterceptor
        Parameters:
        buffer - copy of data entering in
        axisCtx - associated axis2MsgCtx
        Returns:
        whether to continue reading the data or to close the connection
      • interceptTargetRequest

        public boolean interceptTargetRequest​(org.apache.axis2.context.MessageContext axisCtx)
        Description copied from interface: StreamInterceptor
        Logic to determine whether to intercept the target request
        Specified by:
        interceptTargetRequest in interface StreamInterceptor
        Parameters:
        axisCtx - associated axis2MsgCtx of the request
        Returns:
        intercept target request or not
      • targetRequest

        public void targetRequest​(ByteBuffer buffer,
                                  org.apache.axis2.context.MessageContext axisCtx)
        Description copied from interface: StreamInterceptor
        Handles the request data leaving out of the engine
        Specified by:
        targetRequest in interface StreamInterceptor
        Parameters:
        buffer - copy of data being send out
        axisCtx - associated axis2MsgCtx
      • interceptTargetResponse

        public boolean interceptTargetResponse​(org.apache.axis2.context.MessageContext axisCtx)
        Description copied from interface: StreamInterceptor
        Logic to determine whether to intercept the target response
        Specified by:
        interceptTargetResponse in interface StreamInterceptor
        Parameters:
        axisCtx - associated axis2MsgCtx of the response
        Returns:
        intercept target response or not
      • targetResponse

        public boolean targetResponse​(ByteBuffer buffer,
                                      org.apache.axis2.context.MessageContext axisCtx)
        Description copied from interface: StreamInterceptor
        Handles the response data coming in to the engine from the back end
        Specified by:
        targetResponse in interface StreamInterceptor
        Parameters:
        buffer - copy of data entering in
        axisCtx - associated axis2MsgCtx
        Returns:
        whether to continue reading the data or to close the connection
      • interceptSourceResponse

        public boolean interceptSourceResponse​(org.apache.axis2.context.MessageContext axisCtx)
        Description copied from interface: StreamInterceptor
        Logic to determine whether to intercept the source response
        Specified by:
        interceptSourceResponse in interface StreamInterceptor
        Parameters:
        axisCtx - associated axis2MsgCtx of the response
        Returns:
        intercept source response or not
      • sourceResponse

        public void sourceResponse​(ByteBuffer buffer,
                                   org.apache.axis2.context.MessageContext axisCtx)
        Description copied from interface: StreamInterceptor
        Handles the response data leaving out of the engine
        Specified by:
        sourceResponse in interface StreamInterceptor
        Parameters:
        buffer - copy of data leaving
        axisCtx - associated axis2MsgCtx