Class ClientsidePropertyServiceCore.Default

    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected fiftyone.pipeline.core.flowelements.Pipeline pipeline
      The Pipeline in the server instance.
      protected static char PROFILE_OVERRIDES_SPLITTER
      Character used by profile override logic to separate profile IDs.
    • Constructor Summary

      Constructors 
      Constructor Description
      Default​(FlowDataProviderCore flowDataProviderCore, fiftyone.pipeline.core.flowelements.Pipeline pipeline)
      Create a new instance.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void init()
      Initialise the service.
      void serveContent​(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, fiftyone.pipeline.web.services.ClientsidePropertyServiceCore.Default.ContentTypes contentType)  
      void serveJavascript​(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
      Add the JavaScript from the FlowData object to the HttpServletResponse
      void serveJson​(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
      Add the JSON from the FlowData object to the HttpServletResponse
    • Field Detail

      • PROFILE_OVERRIDES_SPLITTER

        protected static final char PROFILE_OVERRIDES_SPLITTER
        Character used by profile override logic to separate profile IDs.
        See Also:
        Constant Field Values
      • pipeline

        protected fiftyone.pipeline.core.flowelements.Pipeline pipeline
        The Pipeline in the server instance.
    • Constructor Detail

      • Default

        public Default​(FlowDataProviderCore flowDataProviderCore,
                       fiftyone.pipeline.core.flowelements.Pipeline pipeline)
        Create a new instance.
        Parameters:
        flowDataProviderCore - the provider to the FlowData for a request from
        pipeline - the Pipeline in the server instance
    • Method Detail

      • init

        protected void init()
        Initialise the service.
      • serveJavascript

        public void serveJavascript​(javax.servlet.http.HttpServletRequest request,
                                    javax.servlet.http.HttpServletResponse response)
                             throws IOException
        Description copied from interface: ClientsidePropertyServiceCore
        Add the JavaScript from the FlowData object to the HttpServletResponse
        Specified by:
        serveJavascript in interface ClientsidePropertyServiceCore
        Parameters:
        request - the HttpServletRequest containing the FlowData
        response - the HttpServletResponse to add the JavaScript to
        Throws:
        IOException - if there was a failure reading or writing to the request or response
      • serveJson

        public void serveJson​(javax.servlet.http.HttpServletRequest request,
                              javax.servlet.http.HttpServletResponse response)
                       throws IOException
        Description copied from interface: ClientsidePropertyServiceCore
        Add the JSON from the FlowData object to the HttpServletResponse
        Specified by:
        serveJson in interface ClientsidePropertyServiceCore
        Parameters:
        request - the HttpServletRequest containing the FlowData
        response - the HttpServletResponse to add the JSON to
        Throws:
        IOException - if there was a failure reading or writing to the request or response
      • serveContent

        public void serveContent​(javax.servlet.http.HttpServletRequest request,
                                 javax.servlet.http.HttpServletResponse response,
                                 fiftyone.pipeline.web.services.ClientsidePropertyServiceCore.Default.ContentTypes contentType)
                          throws IOException
        Throws:
        IOException