Jetty has moved!
Jetty is a project at the Eclipse Foundation.
Homepage:http://www.eclipse.org/jetty
Downloads: http://download.eclipse.org/jetty/
Documentation:http://www.eclipse.org/jetty/documentation/current/
About:http://www.eclipse.org/jetty/about.php
Jetty Powered:http://www.eclipse.org/jetty/powered/
Contact the core Jetty developers at www.webtide.com
private support for your internal/customer projects ... custom extensions and distributions ... versioned snapshots for indefinite support ... scalability guidance for your apps and Ajax/Comet projects ... development services from 1 day to full product delivery
Skip to end of metadata
Go to start of metadata

org.mortbay.jetty
Class Server

The Class Server inherits classes like:

org.mortbay.component.AbstractLifeCycle
Org.mortbay.jetty.handler.AbstractHandler
Org.mortbay.jetty.handler.HandlerCollection

And handler and LifeCycle are the implemented interfaces

The class Server extends Handler Collection from org.mortbay.jetty.handler.HandlerCollection
Jetty HTTP Servlet Server. This class is the main class for the Jetty HTTP Servlet Server.
It aggregates Connectors (HTTP request receivers) and request Handlers. The server itself
is a handler and a ThreadPool. Connectors use the ThreadPool methods to run jobs that will eventually call the handle method

Fields inherited from class org.mortbay.jetty.handler.AbstractHandler

_String

protected java.lang.String_string

Fields inherited from interface org.mortbay.jetty.Handler

ALL

public static final int ALL

DEFAULT

public static final int DEFAULT

ERROR

public static final int ERROR

FORWARD

public static final int FORWARD

INCLUDE

public static final int INCLUDE

REQUEST

public static final int REQUEST

Here is the Constructor struture for Class Server in Jetty6

Server

public Server()

Methods inherited from class org.mortbay.jetty.handler.HandlerCollection

addHandler

public void addHandler(Handler handler)

getHandler

public Handler getHandler()

    Conveniance method to set a single handler

    Returns:
        the handler.

getHandlers

public Handler[] getHandlers()

    Returns:
        Returns the handlers.

removeHandler

public void removeHandler(Handler handler)
                   throws java.lang.Exception

    Throws:
        java.lang.Exception

setHandler

public void setHandler(Handler handler)

    Conveniance method to set a single handler

    Parameters:
        handler - The handler to set.

setServer

public void setServer(Server server)

    Specified by:
        setServer in interface Handler
    Overrides:
        setServer in class AbstractHandler

Methods inherited from class org.mortbay.jetty.handler.AbstractHandler

getServer

public Server getServer()

   Specified by:
     getServer in interface Handler

toString

public java.lang.String toString()

isFailed

public boolean isFailed()

    Specified by:
        isFailed in interface LifeCycle

    Returns:
        True if the LifeCycle is failed

isRunning

public boolean isRunning()

    Specified by:
        isRunning in interface LifeCycle

    Returns:
        True if the LifeCycle is starting or has been started

isStarted

public boolean isStarted()

    Specified by:
        isStarted in interface LifeCycle

    Returns:
        True if the LifeCycle has been started

isStarting

public boolean isStarting()

    Specified by:
        isStarting in interface LifeCycle

    Returns:
        True if the LifeCycle is starting.

isStopping

public boolean isStopping()

    Specified by:
        isStopping in interface LifeCycle

    Returns:
        True if the LifeCycle is stopping

start

public final void start()
                 throws java.lang.Exception

    Description copied from interface: LifeCycle
    Start the LifeCycle.

    Specified by:
        start in interface LifeCycle

stop

public final void stop()
                throws java.lang.Exception

    Description copied from interface: LifeCycle
    Stop the LifeCycle. The LifeCycle may wait for current activities to complete normally, but it can be interrupted.

    Specified by:
        stop in interface LifeCycle

    Throws:
        java.lang.Exception - An arbitrary exception may be thrown.

Methods inherited from class java.lang.object

clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

Methods inherited from interface org.mortbay.jetty.Handler

getServer

public Server getServer()

Methods inherited from interface org.mortbay.component.LifeCycle

isFailed

public boolean isFailed()

    Returns:
        True if the LifeCycle is failed

isRunning

public boolean isRunning()

    Returns:
        True if the LifeCycle is starting or has been started.

isStarted

public boolean isStarted()

    Returns:
        True if the LifeCycle has been started.

isStarting

public boolean isStarting()

    Returns:
        True if the LifeCycle is starting.

isStopping

public boolean isStopping()

    Returns:
        True if the LifeCycle is stopping

start

public void start()
           throws java.lang.Exception

    Start the LifeCycle.

    Throws:
        java.lang.Exception - An arbitrary exception may be thrown.

stop

public void stop()
          throws java.lang.Exception

    Stop the LifeCycle. The LifeCycle may wait for current activities to complete normally, but it can be interrupted.

    Throws:
        java.lang.Exception - An arbitrary exception may be thrown.

  • No labels
Contact the core Jetty developers at www.webtide.com
private support for your internal/customer projects ... custom extensions and distributions ... versioned snapshots for indefinite support ... scalability guidance for your apps and Ajax/Comet projects ... development services from 1 day to full product delivery