public class LoggingBHttpServerConnection extends DefaultBHttpServerConnection implements Identifiable
| Constructor and Description |
|---|
LoggingBHttpServerConnection(String scheme,
Http1Config http1Config) |
LoggingBHttpServerConnection(String scheme,
Http1Config http1Config,
CharsetDecoder charDecoder,
CharsetEncoder charEncoder,
ContentLengthStrategy incomingContentStrategy,
ContentLengthStrategy outgoingContentStrategy,
HttpMessageParserFactory<ClassicHttpRequest> requestParserFactory,
HttpMessageWriterFactory<ClassicHttpResponse> responseWriterFactory) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
awaitInput(Timeout arg0) |
void |
bind(Socket socket) |
protected void |
bind(SocketHolder arg0) |
void |
close() |
void |
close(CloseMode closeMode) |
protected InputStream |
createContentInputStream(long arg0,
SessionInputBuffer arg1,
InputStream arg2) |
protected OutputStream |
createContentOutputStream(long arg0,
SessionOutputBuffer arg1,
OutputStream arg2,
Supplier<List<? extends Header>> arg3) |
protected SocketHolder |
ensureOpen() |
String |
getId() |
protected SocketHolder |
getSocketHolder() |
protected void |
incrementRequestCount() |
protected void |
incrementResponseCount() |
protected void |
onRequestReceived(ClassicHttpRequest request) |
protected void |
onResponseSubmitted(ClassicHttpResponse response) |
receiveRequestEntity, receiveRequestHeader, sendResponseEntity, sendResponseHeaderpublic LoggingBHttpServerConnection(String scheme, Http1Config http1Config, CharsetDecoder charDecoder, CharsetEncoder charEncoder, ContentLengthStrategy incomingContentStrategy, ContentLengthStrategy outgoingContentStrategy, HttpMessageParserFactory<ClassicHttpRequest> requestParserFactory, HttpMessageWriterFactory<ClassicHttpResponse> responseWriterFactory)
public LoggingBHttpServerConnection(String scheme, Http1Config http1Config)
public String getId()
getId in interface Identifiablepublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in interface HttpConnectionclose in class DefaultBHttpServerConnectionIOExceptionpublic void close(CloseMode closeMode)
close in interface ModalCloseableclose in class DefaultBHttpServerConnectionpublic void bind(Socket socket) throws IOException
bind in class DefaultBHttpServerConnectionIOExceptionprotected void onRequestReceived(ClassicHttpRequest request)
onRequestReceived in class DefaultBHttpServerConnectionprotected void onResponseSubmitted(ClassicHttpResponse response)
onResponseSubmitted in class DefaultBHttpServerConnectionprotected SocketHolder ensureOpen() throws IOException
IOExceptionprotected void bind(SocketHolder arg0) throws IOException
IOExceptionprotected SocketHolder getSocketHolder()
protected OutputStream createContentOutputStream(long arg0, SessionOutputBuffer arg1, OutputStream arg2, Supplier<List<? extends Header>> arg3)
protected InputStream createContentInputStream(long arg0, SessionInputBuffer arg1, InputStream arg2)
protected boolean awaitInput(Timeout arg0) throws IOException
IOExceptionprotected void incrementRequestCount()
protected void incrementResponseCount()
Copyright © 2005–2021 The Apache Software Foundation. All rights reserved.