◆ Default()
fiftyone.pipeline.web.services.FiftyOneJSServiceCore.Default.Default | ( | ClientsidePropertyServiceCore | clientsidePropertyServiceCore, |
boolean | enabled | ||
) |
Construct a new instance.
- Parameters
-
- clientsidePropertyServiceCore - used to get the JavaScript to add to the returned file
- enabled - true if the service should be enabled
Member Function Documentation
◆ serveJS()
boolean fiftyone.pipeline.web.services.FiftyOneJSServiceCore.Default.serveJS ( HttpServletRequest request, 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
- Exceptions
-
- IOException -
Implements fiftyone.pipeline.web.services.FiftyOneJSServiceCore.
◆ serveJson()
boolean fiftyone.pipeline.web.services.FiftyOneJSServiceCore.Default.serveJson ( HttpServletRequest request, 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
Implements fiftyone.pipeline.web.services.FiftyOneJSServiceCore.