Class HttpRequestFrameReader
- java.lang.Object
-
- org.smallmind.web.reverse.http1_1.SourceAwareFrameReader
-
- org.smallmind.web.reverse.http1_1.HttpFrameReader
-
- org.smallmind.web.reverse.http1_1.HttpRequestFrameReader
-
- All Implemented Interfaces:
FrameReader
public class HttpRequestFrameReader extends HttpFrameReader
-
-
Constructor Summary
Constructors Constructor Description HttpRequestFrameReader(ReverseProxyService reverseProxyService, SocketChannel sourceChannel, int connectTimeoutMillis)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcloseChannels()SocketChannelgetDestinationChannel()HttpRequestFramegetHttpFrame(ReverseProxyService reverseProxyService, SocketChannel sourceSocketChannel, HttpProtocolInputStream httpProtocolInputStream, HttpProtocolOutputStream httpProtocolOutputStream)SocketChannelgetTargetChannel()voidregisterDestination(ProxyTarget target, SocketChannel destinationChannel)-
Methods inherited from class org.smallmind.web.reverse.http1_1.HttpFrameReader
fail, flushBufferToTarget, processInput, writeToBuffer
-
Methods inherited from class org.smallmind.web.reverse.http1_1.SourceAwareFrameReader
getSourceChannel
-
-
-
-
Constructor Detail
-
HttpRequestFrameReader
public HttpRequestFrameReader(ReverseProxyService reverseProxyService, SocketChannel sourceChannel, int connectTimeoutMillis)
-
-
Method Detail
-
closeChannels
public void closeChannels()
-
registerDestination
public void registerDestination(ProxyTarget target, SocketChannel destinationChannel)
-
getTargetChannel
public SocketChannel getTargetChannel()
- Specified by:
getTargetChannelin classHttpFrameReader
-
getDestinationChannel
public SocketChannel getDestinationChannel() throws ProtocolException
- Specified by:
getDestinationChannelin classHttpFrameReader- Throws:
ProtocolException
-
getHttpFrame
public HttpRequestFrame getHttpFrame(ReverseProxyService reverseProxyService, SocketChannel sourceSocketChannel, HttpProtocolInputStream httpProtocolInputStream, HttpProtocolOutputStream httpProtocolOutputStream) throws IOException, ProtocolException
- Specified by:
getHttpFramein classHttpFrameReader- Throws:
IOExceptionProtocolException
-
-