ubiware.infrastructure.web
Class WebServer

java.lang.Object
  extended by org.eclipse.jetty.util.component.AbstractLifeCycle
      extended by org.eclipse.jetty.server.handler.AbstractHandler
          extended by org.eclipse.jetty.server.handler.AbstractHandlerContainer
              extended by org.eclipse.jetty.server.handler.HandlerWrapper
                  extended by org.eclipse.jetty.server.Server
                      extended by ubiware.infrastructure.web.WebServer
All Implemented Interfaces:
org.eclipse.jetty.server.Handler, org.eclipse.jetty.server.HandlerContainer, org.eclipse.jetty.util.Attributes, org.eclipse.jetty.util.component.LifeCycle

public class WebServer
extends org.eclipse.jetty.server.Server


Nested Class Summary
 
Nested classes/interfaces inherited from class org.eclipse.jetty.server.Server
org.eclipse.jetty.server.Server.Graceful
 
Nested classes/interfaces inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle
org.eclipse.jetty.util.component.AbstractLifeCycle.AbstractLifeCycleListener
 
Nested classes/interfaces inherited from interface org.eclipse.jetty.util.component.LifeCycle
org.eclipse.jetty.util.component.LifeCycle.Listener
 
Field Summary
 
Fields inherited from class org.eclipse.jetty.server.handler.HandlerWrapper
_handler
 
Fields inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle
_listeners, FAILED, RUNNING, STARTED, STARTING, STOPPED, STOPPING
 
Constructor Summary
WebServer(int port, ubiware.core.UbiwareAgent agent)
           
 
Method Summary
(package private)  void deployWar(java.lang.String contextPath, java.lang.String displayName, java.io.File warFile, java.util.Set<ubiware.util.saplbuilder.Resource> infraAgents, ubiware.util.saplbuilder.Resource service)
           
 
Methods inherited from class org.eclipse.jetty.server.Server
addBean, addConnector, addLifeCycle, clearAttributes, doStart, doStop, getAttribute, getAttributeNames, getBean, getBeans, getConnectors, getContainer, getGracefulShutdown, getMaxCookieVersion, getSendDateHeader, getSendServerVersion, getSessionIdManager, getStopAtShutdown, getThreadPool, getVersion, handle, handleAsync, join, main, removeAttribute, removeBean, removeConnector, removeLifeCycle, setAttribute, setConnectors, setGracefulShutdown, setMaxCookieVersion, setSendDateHeader, setSendServerVersion, setSessionIdManager, setStopAtShutdown, setThreadPool, toString
 
Methods inherited from class org.eclipse.jetty.server.handler.HandlerWrapper
expandChildren, getHandler, getHandlers, handle, setHandler, setServer
 
Methods inherited from class org.eclipse.jetty.server.handler.AbstractHandlerContainer
dump, expandHandler, getChildHandlerByClass, getChildHandlers, getChildHandlersByClass
 
Methods inherited from class org.eclipse.jetty.server.handler.AbstractHandler
destroy, dump, getServer
 
Methods inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle
addLifeCycleListener, getState, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, start, stop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.eclipse.jetty.util.component.LifeCycle
addLifeCycleListener, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, start, stop
 

Constructor Detail

WebServer

public WebServer(int port,
                 ubiware.core.UbiwareAgent agent)
          throws java.lang.Exception
Throws:
java.lang.Exception
Method Detail

deployWar

void deployWar(java.lang.String contextPath,
               java.lang.String displayName,
               java.io.File warFile,
               java.util.Set<ubiware.util.saplbuilder.Resource> infraAgents,
               ubiware.util.saplbuilder.Resource service)
         throws java.lang.Exception
Parameters:
contextPath - the context on which this app must be deployed.
displayName - The displayName of the application
warFile - the war file to be deployed
infraAgents - set of all agents which are infrastructure agents for this application (empty set if none)
service - can be null if this application does not have workers
Throws:
java.lang.Exception