Package fiftyone.pipeline.web.services
Interface ClientsidePropertyServiceCore
-
- All Known Implementing Classes:
ClientsidePropertyServiceCore.Default
public interface ClientsidePropertyServiceCoreClass that provides functionality for the 'Client side overrides' feature. Client side overrides allow JavaScript running on the client device to provide additional evidence in the form of cookies or query string parameters to the pipeline on subsequent requests. This enables more detailed information to be supplied to the application. (e.g. iPhone model for device detection).- See Also:
- Specification
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classClientsidePropertyServiceCore.DefaultDefault implementation of theClientsidePropertyServiceCoreinterface.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidserveJavascript(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)Add the JavaScript from theFlowDataobject to theHttpServletResponsevoidserveJson(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)Add the JSON from theFlowDataobject to theHttpServletResponse
-
-
-
Method Detail
-
serveJavascript
void serveJavascript(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws IOExceptionAdd the JavaScript from theFlowDataobject to theHttpServletResponse- Parameters:
request- theHttpServletRequestcontaining theFlowDataresponse- theHttpServletResponseto add the JavaScript to- Throws:
IOException- if there was a failure reading or writing to the request or response
-
serveJson
void serveJson(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws IOExceptionAdd the JSON from theFlowDataobject to theHttpServletResponse- Parameters:
request- theHttpServletRequestcontaining theFlowDataresponse- theHttpServletResponseto add the JSON to- Throws:
IOException- if there was a failure reading or writing to the request or response
-
-