Interface FiftyOneJSServiceCore

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      boolean serveJS​(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
      Check if the 51Degrees JavaScript is being requested and write it to the response if it is.
      boolean serveJson​(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
      Check if the 51Degrees JSON is being requested and write it to the response if it is
    • Method Detail

      • serveJS

        boolean serveJS​(javax.servlet.http.HttpServletRequest request,
                        javax.servlet.http.HttpServletResponse response)
                 throws IOException
        Check if the 51Degrees JavaScript is being requested and write it to the response if it is.
        Parameters:
        request - the HttpServletRequest to get the FlowData from
        response - the HttpServletResponse to write the JavaScript to
        Returns:
        true if JavaScript was written to the response, false otherwise
        Throws:
        IOException - if there was a failure reading or writing to the request or response
      • serveJson

        boolean serveJson​(javax.servlet.http.HttpServletRequest request,
                          javax.servlet.http.HttpServletResponse response)
                   throws IOException
        Check if the 51Degrees JSON is being requested and write it to the response if it is
        Parameters:
        request - the HttpServletRequest to get the FlowData from
        response - the HttpServletResponse to write the JSON to
        Returns:
        true if JSON was written to the response, false otherwise
        Throws:
        IOException - if there was a failure reading or writing to the request or response