Class Connectors


  • public class Connectors
    extends java.lang.Object
    Specifies a jetty configuration <connectors/> element for Ant build file.
    • Constructor Summary

      Constructors 
      Constructor Description
      Connectors()
      Default constructor.
      Connectors​(int port, int maxIdleTime)
      Constructor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void add​(Connector connector)
      Adds a connector to the list of connectors to deploy.
      java.util.List<Connector> getConnectors()
      Returns the list of known connectors to deploy.
      java.util.List<Connector> 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​(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<Connector> getConnectors()
        Returns the list of known connectors to deploy.
        Returns:
        The list of known connectors
      • getDefaultConnectors

        public java.util.List<Connector> getDefaultConnectors()
        Gets the default list of connectors to deploy when no connectors were explicitly added to the list.
        Returns:
        The list of default connectors