org.opennms.netmgt.jetty
Class JettyServer

java.lang.Object
  extended by org.opennms.netmgt.daemon.AbstractServiceDaemon
      extended by org.opennms.netmgt.jetty.JettyServer
All Implemented Interfaces:
Fiber, PausableFiber, SpringServiceDaemon, ServiceDaemon, org.springframework.beans.factory.InitializingBean

public class JettyServer
extends AbstractServiceDaemon
implements SpringServiceDaemon

Implements Web Application within OpenNMS as a Service Daemon.

Author:
Mathew Brozowski, David Hustace

Field Summary
 
Fields inherited from interface org.opennms.core.fiber.PausableFiber
PAUSE_PENDING, PAUSED, RESUME_PENDING
 
Fields inherited from interface org.opennms.core.fiber.Fiber
RUNNING, START_PENDING, STARTING, STATUS_NAMES, STOP_PENDING, STOPPED
 
Constructor Summary
protected JettyServer()
          Constructor for JettyServer.
 
Method Summary
protected  void addContext(org.eclipse.jetty.server.handler.HandlerCollection handlers, File name, String contextPath)
          addContext
protected  void excludeCipherSuites(org.eclipse.jetty.http.ssl.SslContextFactory contextFactory, Integer port)
          excludeCipherSuites
protected  void onInit()
          onInit
protected  void onStart()
          onStart
protected  void onStop()
          onStop
protected  void registerService(Integer port, String contextPath)
          registerService
 
Methods inherited from class org.opennms.netmgt.daemon.AbstractServiceDaemon
afterPropertiesSet, debugf, debugf, errorf, errorf, fatalf, fatalf, getName, getStatus, getStatusText, infof, infof, init, isPaused, isRunning, isStarting, isStartPending, log, onPause, onResume, pause, resume, setStatus, start, status, stop, waitForStatus, waitForStatus, warnf, warnf
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.opennms.netmgt.daemon.SpringServiceDaemon
start
 
Methods inherited from interface org.springframework.beans.factory.InitializingBean
afterPropertiesSet
 

Constructor Detail

JettyServer

protected JettyServer()

Constructor for JettyServer.

Method Detail

onInit

protected void onInit()

onInit

Specified by:
onInit in class AbstractServiceDaemon

addContext

protected void addContext(org.eclipse.jetty.server.handler.HandlerCollection handlers,
                          File name,
                          String contextPath)

addContext

Parameters:
handlers - a HandlerCollection object.
name - a File object.
contextPath - a String object.

registerService

protected void registerService(Integer port,
                               String contextPath)

registerService

Parameters:
port - a Integer object.
contextPath - a String object.

excludeCipherSuites

protected void excludeCipherSuites(org.eclipse.jetty.http.ssl.SslContextFactory contextFactory,
                                   Integer port)

excludeCipherSuites

Parameters:
contextFactory -
https_port -
sslConnector - a org.eclipse.jetty.server.security.SslSocketConnector object.

onStart

protected void onStart()

onStart

Overrides:
onStart in class AbstractServiceDaemon

onStop

protected void onStop()

onStop

Overrides:
onStop in class AbstractServiceDaemon


Copyright © 2011. All Rights Reserved.