org.mortbay.jetty.grizzly
Class GrizzlyConnector
java.lang.Object
org.mortbay.component.AbstractLifeCycle
org.mortbay.jetty.AbstractBuffers
org.mortbay.jetty.AbstractConnector
org.mortbay.jetty.nio.AbstractNIOConnector
org.mortbay.jetty.grizzly.GrizzlyConnector
- All Implemented Interfaces:
- LifeCycle, Buffers, Connector, NIOConnector
public class GrizzlyConnector
- extends AbstractNIOConnector
- Author:
- gregw
Field Summary |
protected com.sun.grizzly.Controller |
controller
|
Methods inherited from class org.mortbay.jetty.AbstractConnector |
checkForwardedHeaders, configure, connectionClosed, connectionOpened, getAcceptorPriorityOffset, getAcceptors, getAcceptQueueSize, getConfidentialPort, getConfidentialScheme, getConnections, getConnectionsDurationAve, getConnectionsDurationMax, getConnectionsDurationMin, getConnectionsDurationTotal, getConnectionsOpen, getConnectionsOpenMax, getConnectionsOpenMin, getConnectionsRequestsAve, getConnectionsRequestsMax, getConnectionsRequestsMin, getForwardedForHeader, getForwardedHostHeader, getForwardedServerHeader, getHost, getHostHeader, getIntegralPort, getIntegralScheme, getLeftMostValue, getLowResourceMaxIdleTime, getMaxIdleTime, getName, getPort, getRequests, getResolveNames, getReuseAddress, getServer, getSoLingerTime, getStatsOn, getStatsOnMs, getThreadPool, isConfidential, isForwarded, isIntegral, join, newContinuation, persist, setAcceptorPriorityOffset, setAcceptors, setAcceptQueueSize, setConfidentialPort, setConfidentialScheme, setForwarded, setForwardedForHeader, setForwardedHostHeader, setForwardedServerHeader, setHost, setHostHeader, setIntegralPort, setIntegralScheme, setLowResourceMaxIdleTime, setMaxIdleTime, setName, setPort, setResolveNames, setReuseAddress, setServer, setSoLingerTime, setStatsOn, setThreadPool, statsReset, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
controller
protected com.sun.grizzly.Controller controller
GrizzlyConnector
public GrizzlyConnector()
- Constructor.
getConnection
public java.lang.Object getConnection()
- Returns:
- the underlying socket, channel, buffer etc. for the connector.
doStart
protected void doStart()
throws java.lang.Exception
- Overrides:
doStart
in class AbstractConnector
- Throws:
java.lang.Exception
doStop
protected void doStop()
throws java.lang.Exception
- Overrides:
doStop
in class AbstractConnector
- Throws:
java.lang.Exception
open
public void open()
throws java.io.IOException
- Description copied from interface:
Connector
- Opens the connector
- Throws:
java.io.IOException
close
public void close()
throws java.io.IOException
- Throws:
java.io.IOException
accept
public void accept(int acceptorID)
throws java.io.IOException
- Specified by:
accept
in class AbstractConnector
- Throws:
java.io.IOException
stopAccept
public void stopAccept(int acceptorID)
throws java.lang.Exception
- Overrides:
stopAccept
in class AbstractConnector
- Throws:
java.lang.Exception
customize
public void customize(EndPoint endpoint,
Request request)
throws java.io.IOException
- Description copied from interface:
Connector
- Customize a request for an endpoint.
Called on every request to allow customization of the request for
the particular endpoint (eg security properties from a SSL connection).
- Specified by:
customize
in interface Connector
- Overrides:
customize
in class AbstractConnector
- Throws:
java.io.IOException
getLocalPort
public int getLocalPort()
- Returns:
- The actual port the connector is listening on or -1 if there
is no port or the connector is not open.
main
public static void main(java.lang.String[] args)
throws java.lang.Exception
- temp main - just to help testing
- Throws:
java.lang.Exception
Copyright © 1995-2009 Mort Bay Consulting. All Rights Reserved.