org.mortbay.jetty.ant.types
Class Connectors

java.lang.Object
  extended by org.mortbay.jetty.ant.types.Connectors

public class Connectors
extends java.lang.Object

Specifies a jetty configuration element for Ant build file.

Author:
Jakub Pawlowicz

Constructor Summary
Connectors()
          Default constructor.
Connectors(int port, int maxIdleTime)
          Constructor.
 
Method Summary
 void add(org.eclipse.jetty.server.Connector connector)
          Adds a connector to the list of connectors to deploy.
 java.util.List getConnectors()
          Returns the list of known connectors to deploy.
 java.util.List getDefaultConnectors()
          Gets the default list of connectors to deploy when no connectors were explicitly added to the list.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Connectors

public Connectors()
Default constructor.


Connectors

public Connectors(int port,
                  int maxIdleTime)
Constructor.

Parameters:
port - The port that the default connector will listen on
maxIdleTime - The maximum idle time for the default connector
Method Detail

add

public void add(org.eclipse.jetty.server.Connector connector)
Adds a connector to the list of connectors to deploy.

Parameters:
connector - A connector to add to the list

getConnectors

public java.util.List getConnectors()
Returns the list of known connectors to deploy.

Returns:
The list of known connectors

getDefaultConnectors

public java.util.List getDefaultConnectors()
Gets the default list of connectors to deploy when no connectors were explicitly added to the list.

Returns:
The list of default connectors


Copyright © 1995-2011 Mort Bay Consulting. All Rights Reserved.