|
Apache CXF API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.cxf.transport.http_jetty.JettyHTTPServerEngine
public class JettyHTTPServerEngine
This class is the Jetty HTTP Server Engine that is configured to work off of a designated port. The port will be enabled for "http" or "https" depending upon its successful configuration.
Field Summary | |
---|---|
protected JettyHTTPServerEngineFactory |
factory
This is the Jetty HTTP Server Engine Factory. |
Constructor Summary | |
---|---|
JettyHTTPServerEngine()
|
|
JettyHTTPServerEngine(JettyHTTPServerEngineFactory fac,
String host,
int port)
This constructor is called by the JettyHTTPServerEngineFactory. |
Method Summary | |
---|---|
void |
addServant(URL url,
JettyHTTPHandler handler)
Register a servant. |
void |
finalizeConfig()
This method is called after configure on this object. |
org.eclipse.jetty.server.Connector |
getConnector()
|
org.eclipse.jetty.server.handler.ContextHandler |
getContextHandler(URL url)
Get a registered context handler. |
boolean |
getContinuationsEnabled()
|
List<org.eclipse.jetty.server.Handler> |
getHandlers()
|
String |
getHost()
Returns the host for which this server engine was configured. |
protected JettyConnectorFactory |
getHTTPConnectorFactory()
This method creates a connector factory. |
protected JettyConnectorFactory |
getHTTPSConnectorFactory(TLSServerParameters tlsParams)
This method creates a connector factory enabled with the JSSE |
int |
getMaxIdleTime()
|
int |
getPort()
Returns the port number for which this server engine was configured. |
String |
getProtocol()
Returns the protocol "http" or "https" for which this engine was configured. |
org.eclipse.jetty.server.Handler |
getServant(URL url)
Get a registered servant. |
org.eclipse.jetty.server.Server |
getServer()
get the jetty server instance |
ThreadingParameters |
getThreadingParameters()
This method returns the threading parameters that have been set. |
TLSServerParameters |
getTlsServerParameters()
This method returns the programmatically set TLSServerParameters, not the TLSServerParametersType, which is the JAXB generated type used in SpringConfiguration. |
boolean |
isReuseAddress()
|
boolean |
isSessionSupport()
|
boolean |
isSetThreadingParameters()
This method returns whether the threading parameters are set. |
void |
removeServant(URL url)
Remove a previously registered servant. |
protected void |
retrieveListenerFactory()
|
void |
setBus(Bus bus)
The bus. |
void |
setConnector(org.eclipse.jetty.server.Connector c)
set the jetty server's connector |
void |
setContinuationsEnabled(boolean enabled)
|
void |
setHandlers(List<org.eclipse.jetty.server.Handler> h)
set the jetty server's handlers |
void |
setHost(String host)
|
void |
setJettyHTTPServerEngineFactory(JettyHTTPServerEngineFactory fac)
|
void |
setMaxIdleTime(int maxIdle)
|
void |
setPort(int p)
|
void |
setReuseAddress(boolean reuse)
|
void |
setServer(org.eclipse.jetty.server.Server s)
Set the jetty server instance |
void |
setSessionSupport(boolean support)
|
void |
setThreadingParameters(ThreadingParameters params)
This method sets the threading parameters for this particular server engine. |
void |
setTlsServerParameters(TLSServerParameters params)
This method is used to programmatically set the TLSServerParameters. |
protected void |
setupThreadPool()
|
void |
shutdown()
This method will shut down the server engine and remove it from the factory's cache. |
protected void |
stop()
This method is called by the ServerEngine Factory to destroy the listener. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected JettyHTTPServerEngineFactory factory
Constructor Detail |
---|
public JettyHTTPServerEngine(JettyHTTPServerEngineFactory fac, String host, int port)
public JettyHTTPServerEngine()
Method Detail |
---|
public void setJettyHTTPServerEngineFactory(JettyHTTPServerEngineFactory fac)
public void setPort(int p)
public void setHost(String host)
public void setContinuationsEnabled(boolean enabled)
public boolean getContinuationsEnabled()
public void setBus(Bus bus)
public String getProtocol()
public int getPort()
public String getHost()
public void shutdown()
public org.eclipse.jetty.server.Server getServer()
public void setServer(org.eclipse.jetty.server.Server s)
s
- public void setConnector(org.eclipse.jetty.server.Connector c)
c
- public void setHandlers(List<org.eclipse.jetty.server.Handler> h)
h
- public void setSessionSupport(boolean support)
public boolean isSessionSupport()
public List<org.eclipse.jetty.server.Handler> getHandlers()
public org.eclipse.jetty.server.Connector getConnector()
public boolean isReuseAddress()
public void setReuseAddress(boolean reuse)
public int getMaxIdleTime()
public void setMaxIdleTime(int maxIdle)
public void addServant(URL url, JettyHTTPHandler handler)
addServant
in interface ServerEngine
url
- the URL associated with the servanthandler
- notified on incoming HTTP requestsprotected void setupThreadPool()
public void removeServant(URL url)
removeServant
in interface ServerEngine
url
- the URL the servant was registered against.public org.eclipse.jetty.server.Handler getServant(URL url)
getServant
in interface ServerEngine
url
- the associated URL
public org.eclipse.jetty.server.handler.ContextHandler getContextHandler(URL url)
url
- the associated URL
protected void retrieveListenerFactory()
protected JettyConnectorFactory getHTTPConnectorFactory()
protected JettyConnectorFactory getHTTPSConnectorFactory(TLSServerParameters tlsParams)
@PostConstruct public void finalizeConfig() throws GeneralSecurityException, IOException
GeneralSecurityException
IOException
protected void stop() throws Exception
Exception
public void setTlsServerParameters(TLSServerParameters params) throws IOException
IOException
public TLSServerParameters getTlsServerParameters()
public void setThreadingParameters(ThreadingParameters params)
public boolean isSetThreadingParameters()
public ThreadingParameters getThreadingParameters()
|
Apache CXF API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |