Save This Page
Home » spring-framework-2.5.5-with-dependencies » org.springframework » remoting » support » [javadoc | source]
org.springframework.remoting.support
public class: SimpleHttpServerFactoryBean [javadoc | source]
java.lang.Object
   org.springframework.remoting.support.SimpleHttpServerFactoryBean

All Implemented Interfaces:
    DisposableBean, InitializingBean, FactoryBean

org.springframework.beans.factory.FactoryBean that creates a simple HTTP server, based on the HTTP server that is included in Sun's JRE 1.6. Starts the HTTP server on initialization and stops it on destruction. Exposes the resulting com.sun.net.httpserver.HttpServer object.

Allows for registering HttpHandlers for specific context paths . Alternatively, register such context-specific handlers programmatically on the com.sun.net.httpserver.HttpServer itself.

Field Summary
protected final  Log logger     
Method from org.springframework.remoting.support.SimpleHttpServerFactoryBean Summary:
afterPropertiesSet,   destroy,   getObject,   getObjectType,   isSingleton,   setAuthenticator,   setBacklog,   setContexts,   setExecutor,   setFilters,   setHostname,   setPort,   setShutdownDelay,   setTaskExecutor
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.springframework.remoting.support.SimpleHttpServerFactoryBean Detail:
 public  void afterPropertiesSet() throws IOException 
 public  void destroy() 
 public Object getObject() 
 public Class getObjectType() 
 public boolean isSingleton() 
 public  void setAuthenticator(Authenticator authenticator) 
 public  void setBacklog(int backlog) 
    Specify the HTTP server's TCP backlog. Default is -1, indicating the system's default value.
 public  void setContexts(Map contexts) 
 public  void setExecutor(Executor executor) 
    Set the JDK concurrent executor to use for dispatching incoming requests.
 public  void setFilters(List filters) 
 public  void setHostname(String hostname) 
    Specify the HTTP server's hostname to bind to. Default is localhost; can be overridden with a specific network address to bind to.
 public  void setPort(int port) 
    Specify the HTTP server's port. Default is 8080.
 public  void setShutdownDelay(int shutdownDelay) 
    Specify the number of seconds to wait until HTTP exchanges have completed when shutting down the HTTP server. Default is 0.
 public  void setTaskExecutor(TaskExecutor executor) 
    Set the Spring TaskExecutor to use for dispatching incoming requests.