HttpServerConnection.
| Modifier and Type | Field and Description |
|---|---|
| private final ContentLengthStrategy | |
| private final ContentLengthStrategy | |
| private final HttpMessageParser | |
| private final HttpMessageWriter | |
| private final String |
| Access | Constructor and Description |
|---|---|
| public | DefaultBHttpServerConnection(final String
protocol scheme scheme, final Http1Config Message http1Config. If http1Config, final CharsetDecoder null
Http1Config#DEFAULT will be used.decoder to be used for decoding HTTP protocol elements.
If charDecoder, final CharsetEncoder null simple type cast will be used for byte to char conversion.encoder to be used for encoding HTTP protocol elements.
If charEncoder, final ContentLengthStrategy null simple type cast will be used for char to byte conversion.incoming content length strategy. If incomingContentStrategy, final ContentLengthStrategy null
DefaultContentLengthStrategy#INSTANCE will be used.outgoing content length strategy. If outgoingContentStrategy, final HttpMessageParserFactory<ClassicHttpRequest> null
DefaultContentLengthStrategy#INSTANCE will be used.request parser factory. If requestParserFactory, final HttpMessageWriterFactory<ClassicHttpResponse> null
DefaultHttpRequestParserFactory#INSTANCE will be used.response writer factory. If responseWriterFactory)null
DefaultHttpResponseWriterFactory#INSTANCE will be used.Creates new instance of DefaultBHttpServerConnection. |
| public | DefaultBHttpServerConnection(final String scheme, final Http1Config http1Config, final CharsetDecoder charDecoder, final CharsetEncoder charEncoder)
|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | bind(final Socket
the socket. socket)Overrides org. Socket.
|
| protected void | |
| protected void | |
| public void | receiveRequestEntity(final ClassicHttpRequest
the request to attach the entity to. request)Implements org. |
| public ClassicHttpRequest | receiveRequestHeader()
Implements org. |
| public void | sendResponseEntity(final ClassicHttpResponse
the response whose entity to send. response)Implements org. |
| public void | sendResponseHeader(final ClassicHttpResponse
the response whose headers to send. response)Implements org. |
| incomingContentStrategy | back to summary |
|---|---|
| private final ContentLengthStrategy incomingContentStrategy | |
| outgoingContentStrategy | back to summary |
|---|---|
| private final ContentLengthStrategy outgoingContentStrategy | |
| requestParser | back to summary |
|---|---|
| private final HttpMessageParser<ClassicHttpRequest> requestParser | |
| responseWriter | back to summary |
|---|---|
| private final HttpMessageWriter<ClassicHttpResponse> responseWriter | |
| scheme | back to summary |
|---|---|
| private final String scheme | |
| DefaultBHttpServerConnection | back to summary |
|---|---|
| public DefaultBHttpServerConnection(final String scheme, final Http1Config http1Config, final CharsetDecoder charDecoder, final CharsetEncoder charEncoder, final ContentLengthStrategy incomingContentStrategy, final ContentLengthStrategy outgoingContentStrategy, final HttpMessageParserFactory<ClassicHttpRequest> requestParserFactory, final HttpMessageWriterFactory<ClassicHttpResponse> responseWriterFactory) Creates new instance of DefaultBHttpServerConnection.
| |
| DefaultBHttpServerConnection | back to summary |
|---|---|
| public DefaultBHttpServerConnection(final String scheme, final Http1Config http1Config, final CharsetDecoder charDecoder, final CharsetEncoder charEncoder) | |
| DefaultBHttpServerConnection | back to summary |
|---|---|
| public DefaultBHttpServerConnection(final String scheme, final Http1Config http1Config) | |
| bind | back to summary |
|---|---|
| public void bind(final Socket socket) throws IOException Overrides org. Doc from org. Binds this connection to the given
After this method's execution the connection status will be reported
as open and the
| |
| onRequestReceived | back to summary |
|---|---|
| protected void onRequestReceived(final ClassicHttpRequest request) | |
| onResponseSubmitted | back to summary |
|---|---|
| protected void onResponseSubmitted(final ClassicHttpResponse response) | |
| receiveRequestEntity | back to summary |
|---|---|
| public void receiveRequestEntity(final ClassicHttpRequest request) throws HttpException, IOException Implements org. Doc from org. Receives the next request entity available from this connection and attaches it to an existing request.
| |
| receiveRequestHeader | back to summary |
|---|---|
| public ClassicHttpRequest receiveRequestHeader() throws HttpException, IOException Implements org. Doc from org. Receives the request line and all headers available from this connection. The caller should examine the returned request and decide if to receive a request entity as well.
| |
| sendResponseEntity | back to summary |
|---|---|
| public void sendResponseEntity(final ClassicHttpResponse response) throws HttpException, IOException Implements org. Doc from org. Sends the response entity of a response over this connection.
| |
| sendResponseHeader | back to summary |
|---|---|
| public void sendResponseHeader(final ClassicHttpResponse response) throws HttpException, IOException Implements org. Doc from org. Sends the response line and headers of a response over this connection.
| |