Package io.hyperfoil.http.connection
Class Http1xResponseHandler
- java.lang.Object
-
- io.netty.channel.ChannelHandlerAdapter
-
- io.netty.channel.ChannelInboundHandlerAdapter
-
- io.hyperfoil.http.connection.BaseResponseHandler
-
- io.hyperfoil.http.connection.Http1xResponseHandler
-
- All Implemented Interfaces:
io.netty.channel.ChannelHandler,io.netty.channel.ChannelInboundHandler
public class Http1xResponseHandler extends BaseResponseHandler
-
-
Field Summary
-
Fields inherited from class io.hyperfoil.http.connection.BaseResponseHandler
connection, responseBytes
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidchannelInactive(io.netty.channel.ChannelHandlerContext ctx)voidchannelRead(io.netty.channel.ChannelHandlerContext ctx, java.lang.Object msg)voidhandlerAdded(io.netty.channel.ChannelHandlerContext ctx)voidhandlerRemoved(io.netty.channel.ChannelHandlerContext ctx)protected booleanisRequestStream(int streamId)protected voidonBodyPart(io.netty.buffer.ByteBuf buf, int startOffset, int length, boolean isLastPart)protected voidonCompletion(HttpRequest request)protected voidonData(io.netty.channel.ChannelHandlerContext ctx, io.netty.buffer.ByteBuf buf)protected voidonHeaderRead(io.netty.buffer.ByteBuf buf, int startOfName, int endOfName, int startOfValue, int endOfValue)protected voidonStatus(int status)java.lang.StringtoString()-
Methods inherited from class io.hyperfoil.http.connection.BaseResponseHandler
handleBuffer, onRawData
-
-
-
-
Method Detail
-
isRequestStream
protected boolean isRequestStream(int streamId)
- Specified by:
isRequestStreamin classBaseResponseHandler
-
handlerAdded
public void handlerAdded(io.netty.channel.ChannelHandlerContext ctx)
- Specified by:
handlerAddedin interfaceio.netty.channel.ChannelHandler- Overrides:
handlerAddedin classio.netty.channel.ChannelHandlerAdapter
-
channelInactive
public void channelInactive(io.netty.channel.ChannelHandlerContext ctx) throws java.lang.Exception- Specified by:
channelInactivein interfaceio.netty.channel.ChannelInboundHandler- Overrides:
channelInactivein classio.netty.channel.ChannelInboundHandlerAdapter- Throws:
java.lang.Exception
-
handlerRemoved
public void handlerRemoved(io.netty.channel.ChannelHandlerContext ctx)
- Specified by:
handlerRemovedin interfaceio.netty.channel.ChannelHandler- Overrides:
handlerRemovedin classio.netty.channel.ChannelHandlerAdapter
-
channelRead
public void channelRead(io.netty.channel.ChannelHandlerContext ctx, java.lang.Object msg) throws java.lang.Exception- Specified by:
channelReadin interfaceio.netty.channel.ChannelInboundHandler- Overrides:
channelReadin classio.netty.channel.ChannelInboundHandlerAdapter- Throws:
java.lang.Exception
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
onData
protected void onData(io.netty.channel.ChannelHandlerContext ctx, io.netty.buffer.ByteBuf buf)- Overrides:
onDatain classBaseResponseHandler
-
onStatus
protected void onStatus(int status)
- Overrides:
onStatusin classBaseResponseHandler
-
onHeaderRead
protected void onHeaderRead(io.netty.buffer.ByteBuf buf, int startOfName, int endOfName, int startOfValue, int endOfValue)- Overrides:
onHeaderReadin classBaseResponseHandler
-
onBodyPart
protected void onBodyPart(io.netty.buffer.ByteBuf buf, int startOffset, int length, boolean isLastPart)- Overrides:
onBodyPartin classBaseResponseHandler
-
onCompletion
protected void onCompletion(HttpRequest request)
- Overrides:
onCompletionin classBaseResponseHandler
-
-