public abstract class HttpFrameReader extends SourceAwareFrameReader
| Constructor and Description |
|---|
HttpFrameReader(ReverseProxyService reverseProxyService,
SocketChannel sourceChannel) |
| Modifier and Type | Method and Description |
|---|---|
void |
fail(CannedResponse cannedResponse,
SocketChannel failedChannel) |
void |
flushBufferToTarget(boolean complete) |
abstract SocketChannel |
getDestinationChannel() |
abstract HttpFrame |
getHttpFrame(ReverseProxyService reverseProxyService,
SocketChannel sourceSocketChannel,
HttpProtocolInputStream httpProtocolInputStream,
HttpProtocolOutputStream httpProtocolOutputStream) |
abstract SocketChannel |
getTargetChannel() |
void |
processInput(SelectionKey selectionKey,
ByteBuffer byteBuffer) |
void |
writeToBuffer(byte singleByte) |
getSourceChannelclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcloseChannelspublic HttpFrameReader(ReverseProxyService reverseProxyService, SocketChannel sourceChannel)
public abstract SocketChannel getTargetChannel()
public abstract SocketChannel getDestinationChannel() throws ProtocolException
ProtocolExceptionpublic abstract HttpFrame getHttpFrame(ReverseProxyService reverseProxyService, SocketChannel sourceSocketChannel, HttpProtocolInputStream httpProtocolInputStream, HttpProtocolOutputStream httpProtocolOutputStream) throws IOException, ProtocolException
IOExceptionProtocolExceptionpublic void processInput(SelectionKey selectionKey, ByteBuffer byteBuffer)
public void writeToBuffer(byte singleByte)
throws IOException
IOExceptionpublic void flushBufferToTarget(boolean complete)
throws IOException
IOExceptionpublic void fail(CannedResponse cannedResponse, SocketChannel failedChannel)
Copyright © 2017. All rights reserved.