org.jboss.resteasy.plugins.server.tjws
Class TJWSServletServer

java.lang.Object
  extended by 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

Field Summary
protected  java.util.Properties props
           
protected  Acme.Serve.Serve server
           
 
Constructor Summary
TJWSServletServer()
           
 
Method Summary
 void addServlet(java.lang.String bindPath, javax.servlet.http.HttpServlet servlet)
           
 void addServlet(java.lang.String bindPath, javax.servlet.http.HttpServlet servlet, java.util.Hashtable initParams)
           
 void setBindAddress(java.lang.String address)
           
 void setKeepAlive(boolean keepAlive)
           
 void setKeepAliveTimeout(long timeout)
           
 void setMaxKeepAliveConnections(int max)
           
 void setPort(int port)
           
 void setProps(java.util.Properties props)
           
 void setSessionTimeout(long timeout)
           
 void setSSLAlgorithm(java.lang.String algorithm)
           
 void setSSLKeyStoreFile(java.lang.String path)
           
 void setSSLKeyStorePass(java.lang.String passwd)
           
 void setSSLKeyStoreType(java.lang.String type)
           
 void setSSLPort(int port)
           
 void setSSLProtocol(java.lang.String protocol)
           
 void setThreadPoolSize(int max)
           
 void start()
           
 void stop()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

server

protected Acme.Serve.Serve server

props

protected java.util.Properties props
Constructor Detail

TJWSServletServer

public TJWSServletServer()
Method Detail

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)

start

public void start()

stop

public void stop()


Copyright © 2009. All Rights Reserved.