public static class FiftyOneJSServiceCore.Default extends Object implements FiftyOneJSServiceCore
FiftyOneJSServiceCore service.FiftyOneJSServiceCore.Default| Modifier and Type | Field and Description |
|---|---|
protected ClientsidePropertyServiceCore |
clientsidePropertyServiceCore |
protected boolean |
enabled |
| Constructor and Description |
|---|
Default(ClientsidePropertyServiceCore clientsidePropertyServiceCore,
boolean enabled)
Construct a new instance.
|
| Modifier and Type | Method and 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
|
protected final ClientsidePropertyServiceCore clientsidePropertyServiceCore
protected boolean enabled
public Default(ClientsidePropertyServiceCore clientsidePropertyServiceCore, boolean enabled)
clientsidePropertyServiceCore - used to get the JavaScript to
add to the returned fileenabled - true if the service should be enabledpublic boolean serveJS(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws IOException
FiftyOneJSServiceCoreserveJS in interface FiftyOneJSServiceCorerequest - the HttpServletRequest to get the FlowData
fromresponse - the HttpServletResponse to write the JavaScript
toIOExceptionpublic boolean serveJson(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws IOException
FiftyOneJSServiceCoreserveJson in interface FiftyOneJSServiceCorerequest - the HttpServletRequest to get the FlowData
fromresponse - the HttpServletResponse to write the JSON
toIOExceptionCopyright © 2021 51Degrees. All rights reserved.