Class WebScriptServletRuntime

    • Constructor Detail

      • WebScriptServletRuntime

        public WebScriptServletRuntime​(RuntimeContainer container,
                                       ServletAuthenticatorFactory authFactory,
                                       javax.servlet.http.HttpServletRequest req,
                                       javax.servlet.http.HttpServletResponse res,
                                       ServerProperties serverProperties)
        Construct
        Parameters:
        container - RuntimeContainer
        authFactory - ServletAuthenticatorFactory
        req - HttpServletRequest
        res - HttpServletResponse
        serverProperties - ServerProperties
    • Method Detail

      • getScriptMethod

        protected java.lang.String getScriptMethod()
        Description copied from class: AbstractRuntime
        Get the Web Script Method e.g. get, post
        Specified by:
        getScriptMethod in class AbstractRuntime
        Returns:
        web script method
      • getName

        public java.lang.String getName()
        Description copied from interface: Runtime
        Gets the name of the Web Script Runtime
        Returns:
        name
      • getHttpServletRequest

        public static javax.servlet.http.HttpServletRequest getHttpServletRequest​(WebScriptRequest request)
        Helper to get HttpServletRequest from Web Script Request
        Parameters:
        request - WebScriptRequest
        Returns:
        HttpServletRequest
      • getHttpServletResponse

        public static javax.servlet.http.HttpServletResponse getHttpServletResponse​(WebScriptResponse response)
        Helper to get HttpServletResponse from Web Script Response
        Parameters:
        response - WebScriptResponse
        Returns:
        HttpServletResponse
      • getSupportedMethods

        public java.util.List<HttpMethod> getSupportedMethods()
        Helper to get the List of supported methods for web script. For responding to OPTIONS requests.
        Returns:
        List of supported methods for web script