org.jboss.resteasy.plugins.server.tjws
Class TJWSServletServer
java.lang.Object
org.jboss.resteasy.plugins.server.tjws.TJWSServletServer
- Direct Known Subclasses:
- TJWSEmbeddedJaxrsServer, TJWSEmbeddedSpringMVCServer
public class TJWSServletServer
- extends java.lang.Object
This cannot be restarted once stopped.
All properties can be set by a Properties map. See more info at TJWS Website
Server will not run unless you set the port or ssl port properties. You cannot run both an SSL and Non-SSL listener.
Create a new server if you want to do that.
- Version:
- $Revision: 1 $
- Author:
- Bill Burke
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
server
protected TJWSServletServer.FileMappingServe server
props
protected java.util.Properties props
TJWSServletServer
public TJWSServletServer()
addServlet
public void addServlet(java.lang.String bindPath,
javax.servlet.http.HttpServlet servlet)
addServlet
public void addServlet(java.lang.String bindPath,
javax.servlet.http.HttpServlet servlet,
java.util.Hashtable initParams)
setProps
public void setProps(java.util.Properties props)
setPort
public void setPort(int port)
setBindAddress
public void setBindAddress(java.lang.String address)
setSessionTimeout
public void setSessionTimeout(long timeout)
setKeepAlive
public void setKeepAlive(boolean keepAlive)
setKeepAliveTimeout
public void setKeepAliveTimeout(long timeout)
setMaxKeepAliveConnections
public void setMaxKeepAliveConnections(int max)
setThreadPoolSize
public void setThreadPoolSize(int max)
setSSLAlgorithm
public void setSSLAlgorithm(java.lang.String algorithm)
setSSLKeyStoreFile
public void setSSLKeyStoreFile(java.lang.String path)
setSSLKeyStorePass
public void setSSLKeyStorePass(java.lang.String passwd)
setSSLKeyStoreType
public void setSSLKeyStoreType(java.lang.String type)
setSSLProtocol
public void setSSLProtocol(java.lang.String protocol)
setSSLPort
public void setSSLPort(int port)
addFileMapping
public void addFileMapping(java.lang.String context,
java.io.File directory)
start
public void start()
stop
public void stop()
Copyright © 2010. All Rights Reserved.