com.sun.grizzly.tcp.http11
Interface GrizzlyListener

All Known Implementing Classes:
JkCoyoteHandler, SelectorThread, SSLSelectorThread

public interface GrizzlyListener

Basic interface to be implemented by classes that support Adapter and can act like web server like SelectorThread.

Author:
Jeanfrancois Arcand

Method Summary
 Adapter getAdapter()
          Return the Adapter supported.
 void listen()
          Start listening for request.
 String protocol()
          The protocol supported by this listener.
 void setAdapter(Adapter adapter)
          Set the Adapter supported by this GrizzlyListener
 

Method Detail

protocol

String protocol()
The protocol supported by this listener.


listen

void listen()
            throws IOException,
                   InstantiationException
Start listening for request.

Throws:
IOException
InstantiationException

setAdapter

void setAdapter(Adapter adapter)
Set the Adapter supported by this GrizzlyListener


getAdapter

Adapter getAdapter()
Return the Adapter supported.



Copyright © 2012 Oracle Corporation. All Rights Reserved.