com.sun.enterprise.web.portunif
Interface ProtocolFinder
- All Known Implementing Classes:
- HttpProtocolFinder, TlsProtocolFinder
public interface ProtocolFinder
This interface should be used to implement a TCP 'protocol finder'. From the
SelectionKey, it is possible to get a reference to the
SocketChannel and read bytes from it. From the bytes read, the
TCP protocol can be derived and stored inside a ProtocolInfo
instance.
- Author:
- Jeanfrancois Arcand
|
Method Summary |
void |
find(ProtocolInfo protocolInfo)
Try to determine the TCP protocol used (http, soap, etc.). |
find
void find(ProtocolInfo protocolInfo)
throws IOException
- Try to determine the TCP protocol used (http, soap, etc.).
- Parameters:
selectionKey - The SelectionKey from which the SocketChannel can
be derived.
- Throws:
IOException
Copyright © 2005-2015 Oracle Corporation. All Rights Reserved.