Package org.apache.hop.www
Class WebServer
- java.lang.Object
-
- org.apache.hop.www.WebServer
-
public class WebServer extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static intPORTstatic intSHUTDOWN_PORT
-
Constructor Summary
Constructors Constructor Description WebServer(ILogChannel log, PipelineMap pipelineMap, WorkflowMap workflowMap, String hostname, int port, int shutdownPort)WebServer(ILogChannel log, PipelineMap pipelineMap, WorkflowMap workflowMap, String hostname, int port, int shutdownPort, boolean join)WebServer(ILogChannel log, PipelineMap pipelineMap, WorkflowMap workflowMap, String hostname, int port, int shutdownPort, boolean join, String passwordFile)WebServer(ILogChannel log, PipelineMap pipelineMap, WorkflowMap workflowMap, String hostname, int port, int shutdownPort, boolean join, String passwordFile, SslConfiguration sslConfig)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intdefaultDetectionTimer()StringgetContextPath(IHopServerPlugin servlet)StringgetHostname()ILogChannelgetLog()StringgetPasswordFile()PipelineMapgetPipelineMap()intgetPort()org.eclipse.jetty.server.ServergetServer()IVariablesgetVariables()Gets variablesWorkflowMapgetWorkflowMap()voidjoin()voidsetHostname(String hostname)voidsetLog(ILogChannel log)voidsetPasswordFile(String passwordFile)voidsetPipelineMap(PipelineMap pipelineMap)voidsetPort(int port)voidsetServer(org.eclipse.jetty.server.Server server)protected voidsetupJettyOptions(org.eclipse.jetty.server.ServerConnector connector)Set up jetty options to the connectorvoidsetVariables(IVariables variables)voidsetWebServerShutdownHandler(IWebServerShutdownHandler webServerShutdownHandler)Can be used to override the default shutdown behavior of performing a System.exitvoidsetWorkflowMap(WorkflowMap workflowMap)voidstartServer()voidstopServer()
-
-
-
Field Detail
-
PORT
public static final int PORT
- See Also:
- Constant Field Values
-
SHUTDOWN_PORT
public static final int SHUTDOWN_PORT
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
WebServer
public WebServer(ILogChannel log, PipelineMap pipelineMap, WorkflowMap workflowMap, String hostname, int port, int shutdownPort, boolean join, String passwordFile) throws Exception
- Throws:
Exception
-
WebServer
public WebServer(ILogChannel log, PipelineMap pipelineMap, WorkflowMap workflowMap, String hostname, int port, int shutdownPort, boolean join, String passwordFile, SslConfiguration sslConfig) throws Exception
- Throws:
Exception
-
WebServer
public WebServer(ILogChannel log, PipelineMap pipelineMap, WorkflowMap workflowMap, String hostname, int port, int shutdownPort) throws Exception
- Throws:
Exception
-
WebServer
public WebServer(ILogChannel log, PipelineMap pipelineMap, WorkflowMap workflowMap, String hostname, int port, int shutdownPort, boolean join) throws Exception
- Throws:
Exception
-
-
Method Detail
-
getServer
public org.eclipse.jetty.server.Server getServer()
-
getContextPath
public String getContextPath(IHopServerPlugin servlet)
-
join
public void join() throws InterruptedException- Throws:
InterruptedException
-
stopServer
public void stopServer()
-
setupJettyOptions
protected void setupJettyOptions(org.eclipse.jetty.server.ServerConnector connector)
Set up jetty options to the connector- Parameters:
connector-
-
getHostname
public String getHostname()
- Returns:
- the hostname
-
setHostname
public void setHostname(String hostname)
- Parameters:
hostname- the hostname to set
-
getPasswordFile
public String getPasswordFile()
-
setPasswordFile
public void setPasswordFile(String passwordFile)
-
getLog
public ILogChannel getLog()
-
setLog
public void setLog(ILogChannel log)
-
getPipelineMap
public PipelineMap getPipelineMap()
-
setPipelineMap
public void setPipelineMap(PipelineMap pipelineMap)
-
getWorkflowMap
public WorkflowMap getWorkflowMap()
-
setWorkflowMap
public void setWorkflowMap(WorkflowMap workflowMap)
-
getPort
public int getPort()
-
setPort
public void setPort(int port)
-
setServer
public void setServer(org.eclipse.jetty.server.Server server)
-
getVariables
public IVariables getVariables()
Gets variables- Returns:
- value of variables
-
setVariables
public void setVariables(IVariables variables)
- Parameters:
variables- The variables to set
-
setWebServerShutdownHandler
public void setWebServerShutdownHandler(IWebServerShutdownHandler webServerShutdownHandler)
Can be used to override the default shutdown behavior of performing a System.exit- Parameters:
webServerShutdownHandler-
-
defaultDetectionTimer
public int defaultDetectionTimer()
-
-