@Deprecated @UsesSunHttpServer public class SimpleHttpServerFactoryBean extends Object implements org.springframework.beans.factory.FactoryBean<com.sun.net.httpserver.HttpServer>, org.springframework.beans.factory.InitializingBean, org.springframework.beans.factory.DisposableBean
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 HttpServer object.
 Allows for registering HttpHandlers
 for specific context paths. Alternatively,
 register such context-specific handlers programmatically on the
 HttpServer itself.
setPort(int), 
setContexts(java.util.Map<java.lang.String, com.sun.net.httpserver.HttpHandler>)| Constructor and Description | 
|---|
| SimpleHttpServerFactoryBean()Deprecated.  | 
| Modifier and Type | Method and Description | 
|---|---|
| void | afterPropertiesSet()Deprecated.  | 
| void | destroy()Deprecated.  | 
| com.sun.net.httpserver.HttpServer | getObject()Deprecated.  | 
| Class<? extends com.sun.net.httpserver.HttpServer> | getObjectType()Deprecated.  | 
| boolean | isSingleton()Deprecated.  | 
| void | setAuthenticator(com.sun.net.httpserver.Authenticator authenticator)Deprecated.  Register a common  Authenticatorto be
 applied to all locally registeredcontexts. | 
| void | setBacklog(int backlog)Deprecated.  Specify the HTTP server's TCP backlog. | 
| void | setContexts(Map<String,com.sun.net.httpserver.HttpHandler> contexts)Deprecated.  Register  HttpHandlersfor specific context paths. | 
| void | setExecutor(Executor executor)Deprecated.  Set the JDK concurrent executor to use for dispatching incoming requests. | 
| void | setFilters(List<com.sun.net.httpserver.Filter> filters)Deprecated.  Register common  Filtersto be
 applied to all locally registeredcontexts. | 
| void | setHostname(String hostname)Deprecated.  Specify the HTTP server's hostname to bind to. | 
| void | setPort(int port)Deprecated.  Specify the HTTP server's port. | 
| void | setShutdownDelay(int shutdownDelay)Deprecated.  Specify the number of seconds to wait until HTTP exchanges have
 completed when shutting down the HTTP server. | 
protected final Log logger
public void setPort(int port)
public void setHostname(String hostname)
public void setBacklog(int backlog)
public void setShutdownDelay(int shutdownDelay)
public void setExecutor(Executor executor)
HttpServer.setExecutor(java.util.concurrent.Executor)public void setContexts(Map<String,com.sun.net.httpserver.HttpHandler> contexts)
HttpHandlers
 for specific context paths.contexts - a Map with context paths as keys and HttpHandler
 objects as valuesorg.springframework.remoting.httpinvoker.SimpleHttpInvokerServiceExporter, 
org.springframework.remoting.caucho.SimpleHessianServiceExporterpublic void setFilters(List<com.sun.net.httpserver.Filter> filters)
Filters to be
 applied to all locally registered contexts.public void setAuthenticator(com.sun.net.httpserver.Authenticator authenticator)
Authenticator to be
 applied to all locally registered contexts.public void afterPropertiesSet()
                        throws IOException
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanIOExceptionpublic com.sun.net.httpserver.HttpServer getObject()
getObject in interface org.springframework.beans.factory.FactoryBean<com.sun.net.httpserver.HttpServer>public Class<? extends com.sun.net.httpserver.HttpServer> getObjectType()
getObjectType in interface org.springframework.beans.factory.FactoryBean<com.sun.net.httpserver.HttpServer>public boolean isSingleton()
isSingleton in interface org.springframework.beans.factory.FactoryBean<com.sun.net.httpserver.HttpServer>public void destroy()
destroy in interface org.springframework.beans.factory.DisposableBean