public class HttpRedirectorProtocolFinder extends Object implements com.sun.enterprise.web.portunif.ProtocolFinder
ProtocolFinder implementation that parse the available
SocketChannel bytes looking for the 'http' bytes. An http request will
always has the form of:
METHOD URI PROTOCOL/VERSION
example: GET / HTTP/1.1
The algorithm will try to find the protocol token.
This object shoudn't be called by several threads simultaneously.| Constructor and Description |
|---|
HttpRedirectorProtocolFinder() |
| Modifier and Type | Method and Description |
|---|---|
void |
find(com.sun.enterprise.web.portunif.util.ProtocolInfo protocolInfo)
Try to find if the current connection is using the HTTP protocol.
|
public void find(com.sun.enterprise.web.portunif.util.ProtocolInfo protocolInfo)
find in interface com.sun.enterprise.web.portunif.ProtocolFinderProtocolInfo - The ProtocolInfo that contains the information
about the current protocol.Copyright © 2005–2018 Oracle Corporation. All rights reserved.