Package fiftyone.pipeline.web.services
Interface FiftyOneJSServiceCore
-
- All Known Implementing Classes:
FiftyOneJSServiceCore.Default
public interface FiftyOneJSServiceCoreService that provides the 51Degrees javascript when requested.- See Also:
- Specification
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classFiftyOneJSServiceCore.DefaultDefault implementation of theFiftyOneJSServiceCoreservice.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanserveJS(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.booleanserveJson(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 IOExceptionCheck if the 51Degrees JavaScript is being requested and write it to the response if it is.- Parameters:
request- theHttpServletRequestto get theFlowDatafromresponse- theHttpServletResponseto 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 IOExceptionCheck if the 51Degrees JSON is being requested and write it to the response if it is- Parameters:
request- theHttpServletRequestto get theFlowDatafromresponse- theHttpServletResponseto 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
-
-