com.sun.enterprise.web.portunif
Interface ProtocolHandler

All Known Implementing Classes:
HttpProtocolHandler

public interface ProtocolHandler

Once a TCP protocol has been found by a ProtocolFinder

Author:
Jeanfrancois Arcand

Method Summary
 boolean expireKey(SelectionKey key)
          Invoked when the SelectorThread is about to expire a SelectionKey.
 String[] getProtocols()
          Return an array of TCP protocols supported by this ProtocolHandler.
 void handle(ProtocolInfo protocolInfo)
          Handle the current request by either redirecting the request to a new port or by delivering the request to the proper endpoint.
 

Method Detail

getProtocols

String[] getProtocols()
Return an array of TCP protocols supported by this ProtocolHandler.


handle

void handle(ProtocolInfo protocolInfo)
            throws IOException
Handle the current request by either redirecting the request to a new port or by delivering the request to the proper endpoint.

Throws:
IOException

expireKey

boolean expireKey(SelectionKey key)
Invoked when the SelectorThread is about to expire a SelectionKey.

Returns:
true if the SelectorThread should expire the SelectionKey, false if not.


Copyright © 2005-2015 Oracle Corporation. All Rights Reserved.