51Degrees Pipeline Java  4.1

51Degrees Pipeline for Java

fiftyone.pipeline.web.services.FiftyOneJSServiceCore.Default Class Reference

Detailed Description

Default implementation of the FiftyOneJSServiceCore service.

Inheritance diagram for fiftyone.pipeline.web.services.FiftyOneJSServiceCore.Default:

[legend]

Collaboration diagram for fiftyone.pipeline.web.services.FiftyOneJSServiceCore.Default:

[legend]

Public Member Functions

 Default (ClientsidePropertyServiceCore clientsidePropertyServiceCore, boolean enabled)
Construct a new instance. More...
boolean  serveJS (HttpServletRequest request, HttpServletResponse response) throws IOException
Check if the 51Degrees JavaScript is being requested and write it to the response if it is. More...
boolean  serveJson (HttpServletRequest request, HttpServletResponse response) throws IOException
Check if the 51Degrees JSON is being requested and write it to the response if it is. More...

Protected Attributes

final ClientsidePropertyServiceCore  clientsidePropertyServiceCore
boolean  enabled

Constructor & Destructor Documentation

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.