Class WebServiceServer

All Implemented Interfaces:
Runnable, InitializingPhase, Named, ShutdownPhase, Endpoint, Server, ReferenceResolverAware

public class WebServiceServer extends AbstractServer
Jetty server implementation wrapping a Server with Citrus server behaviour, so server can be started/stopped by Citrus.
  • Constructor Details

    • WebServiceServer

      public WebServiceServer()
  • Method Details

    • shutdown

      protected void shutdown()
      Specified by:
      shutdown in class AbstractServer
    • startup

      protected void startup()
      Specified by:
      startup in class AbstractServer
    • configure

      protected void configure(org.eclipse.jetty.ee10.servlet.ServletContextHandler contextHandler)
      Subclasses may add additional configuration on context handler.
      Parameters:
      contextHandler -
    • initialize

      public void initialize()
      Specified by:
      initialize in interface InitializingPhase
      Overrides:
      initialize in class AbstractServer
    • getServletName

      public String getServletName()
      Gets the customized servlet name or default name if not set.
      Returns:
      the servletName
    • getPort

      public int getPort()
      Gets the port.
      Returns:
      the port the port to get.
    • setPort

      public void setPort(int port)
      Sets the port.
      Parameters:
      port - the port to set
    • getResourceBase

      public String getResourceBase()
      Gets the resourceBase.
      Returns:
      the resourceBase the resourceBase to get.
    • setResourceBase

      public void setResourceBase(String resourceBase)
      Sets the resourceBase.
      Parameters:
      resourceBase - the resourceBase to set
    • getContextConfigLocation

      public String getContextConfigLocation()
      Gets the contextConfigLocation.
      Returns:
      the contextConfigLocation the contextConfigLocation to get.
    • setContextConfigLocation

      public void setContextConfigLocation(String contextConfigLocation)
      Sets the contextConfigLocation.
      Parameters:
      contextConfigLocation - the contextConfigLocation to set
    • getConnector

      public org.eclipse.jetty.server.Connector getConnector()
      Gets the connector.
      Returns:
      the connector the connector to get.
    • setConnector

      public void setConnector(org.eclipse.jetty.server.Connector connector)
      Sets the connector.
      Parameters:
      connector - the connector to set
    • getConnectors

      public org.eclipse.jetty.server.Connector[] getConnectors()
      Gets the connectors.
      Returns:
      the connectors
    • setConnectors

      public void setConnectors(org.eclipse.jetty.server.Connector[] connectors)
      Sets the connectors.
      Parameters:
      connectors - the connectors to set
    • getServletMappingPath

      public String getServletMappingPath()
      Gets the servletMappingPath.
      Returns:
      the servletMappingPath the servletMappingPath to get.
    • setServletMappingPath

      public void setServletMappingPath(String servletMappingPath)
      Sets the servletMappingPath.
      Parameters:
      servletMappingPath - the servletMappingPath to set
    • getContextPath

      public String getContextPath()
      Gets the contextPath.
      Returns:
      the contextPath the contextPath to get.
    • setContextPath

      public void setContextPath(String contextPath)
      Sets the contextPath.
      Parameters:
      contextPath - the contextPath to set
    • getSecurityHandler

      public org.eclipse.jetty.security.SecurityHandler getSecurityHandler()
      Gets the securityHandler.
      Returns:
      the securityHandler the securityHandler to get.
    • setSecurityHandler

      public void setSecurityHandler(org.eclipse.jetty.security.SecurityHandler securityHandler)
      Sets the securityHandler.
      Parameters:
      securityHandler - the securityHandler to set
    • getServletHandler

      public org.eclipse.jetty.ee10.servlet.ServletHandler getServletHandler()
      Gets the servletHandler.
      Returns:
      the servletHandler to get.
    • setServletHandler

      public void setServletHandler(org.eclipse.jetty.ee10.servlet.ServletHandler servletHandler)
      Sets the servletHandler.
      Parameters:
      servletHandler - the servletHandler to set
    • setServletName

      public void setServletName(String servletName)
      Sets the servletName.
      Parameters:
      servletName - the servletName to set
    • isUseRootContextAsParent

      public boolean isUseRootContextAsParent()
      Gets the useRootContextAsParent.
      Returns:
      if to use the root context path as parent, or not.
    • setUseRootContextAsParent

      public void setUseRootContextAsParent(boolean useRootContextAsParent)
      Sets the useRootContextAsParent.
      Parameters:
      useRootContextAsParent - the useRootContextAsParent to set
    • isHandleMimeHeaders

      public boolean isHandleMimeHeaders()
      Should handle mime headers.
      Returns:
    • setHandleMimeHeaders

      public void setHandleMimeHeaders(boolean handleMimeHeaders)
      Enable mime headers in request message which is passed to endpoint adapter.
      Parameters:
      handleMimeHeaders - the handleMimeHeaders to set
    • isHandleAttributeHeaders

      public boolean isHandleAttributeHeaders()
      Gets the handleAttributeHeaders.
      Returns:
    • setHandleAttributeHeaders

      public void setHandleAttributeHeaders(boolean handleAttributeHeaders)
      Sets the handleAttributeHeaders.
      Parameters:
      handleAttributeHeaders -
    • isKeepSoapEnvelope

      public boolean isKeepSoapEnvelope()
      Gets the keep soap envelope flag.
      Returns:
    • setKeepSoapEnvelope

      public void setKeepSoapEnvelope(boolean keepSoapEnvelope)
      Sets the keep soap header flag.
      Parameters:
      keepSoapEnvelope -
    • getSoapHeaderNamespace

      public String getSoapHeaderNamespace()
      Gets the default soap header namespace.
      Returns:
    • setSoapHeaderNamespace

      public void setSoapHeaderNamespace(String soapHeaderNamespace)
      Sets the default soap header namespace.
      Parameters:
      soapHeaderNamespace -
    • getSoapHeaderPrefix

      public String getSoapHeaderPrefix()
      Gets the default soap header prefix.
      Returns:
    • setSoapHeaderPrefix

      public void setSoapHeaderPrefix(String soapHeaderPrefix)
      Sets the default soap header prefix.
      Parameters:
      soapHeaderPrefix -
    • getMessageConverter

      public WebServiceMessageConverter getMessageConverter()
      Gets the message converter.
      Returns:
    • setMessageConverter

      public void setMessageConverter(WebServiceMessageConverter messageConverter)
      Sets the message converter.
      Parameters:
      messageConverter -
    • getMessageFactoryName

      public String getMessageFactoryName()
      Gets the message factory name.
      Returns:
    • setMessageFactoryName

      public void setMessageFactoryName(String messageFactoryName)
      Sets the message factory name.
      Parameters:
      messageFactoryName -