cn.dreampie.server
类 RestyServer

java.lang.Object
  继承者 cn.dreampie.server.RestyServer
直接已知子类:
JettyServerProvider

public abstract class RestyServer
extends Object

Created by ice on 14-12-19.


字段摘要
protected  ClassLoader classLoader
           
protected  String classPath
           
protected  String contextPath
           
protected  String host
           
protected  boolean isBuild
           
protected  String mainFile
           
protected  int port
           
protected  ReloadObserver reloadObserver
           
protected  ReloadRunnable reloadRunnable
           
protected  String resourceBase
           
protected  String rootPath
           
protected  StackTraceElement stack
           
protected  boolean useHttpSession
           
protected  Thread watchThread
           
protected  String webXmlPath
           
 
构造方法摘要
RestyServer()
           
 
方法摘要
 RestyServer build()
           
 RestyServer build(int port)
           
 RestyServer build(int port, String host)
           
abstract  void destroy()
           
protected abstract  void init()
           
abstract  void restartWebApp()
           
 RestyServer setContextPath(String contextPath)
           
 void setResourceBase(String resourceBase)
           
 void setUseHttpSession(boolean useHttpSession)
           
abstract  void start()
           
abstract  void stop()
           
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

字段详细信息

host

protected String host

port

protected int port

isBuild

protected boolean isBuild

contextPath

protected String contextPath

resourceBase

protected String resourceBase

useHttpSession

protected boolean useHttpSession

rootPath

protected String rootPath

classPath

protected String classPath

webXmlPath

protected String webXmlPath

reloadRunnable

protected ReloadRunnable reloadRunnable

reloadObserver

protected ReloadObserver reloadObserver

watchThread

protected Thread watchThread

classLoader

protected ClassLoader classLoader

stack

protected StackTraceElement stack

mainFile

protected String mainFile
构造方法详细信息

RestyServer

public RestyServer()
方法详细信息

setContextPath

public RestyServer setContextPath(String contextPath)

setResourceBase

public void setResourceBase(String resourceBase)

setUseHttpSession

public void setUseHttpSession(boolean useHttpSession)

build

public RestyServer build()
                  throws Exception
抛出:
Exception

build

public RestyServer build(int port)
                  throws Exception
抛出:
Exception

build

public RestyServer build(int port,
                         String host)
                  throws Exception
抛出:
Exception

init

protected abstract void init()
                      throws Exception
抛出:
Exception

start

public abstract void start()
                    throws Exception
抛出:
Exception

stop

public abstract void stop()
                   throws Exception
抛出:
Exception

destroy

public abstract void destroy()
                      throws Exception
抛出:
Exception

restartWebApp

public abstract void restartWebApp()
                            throws Exception
抛出:
Exception


Copyright © 2017. All rights reserved.