Class ProxyServiceInternalImpl

    • Field Detail

      • restTemplate

        protected final org.springframework.web.client.RestTemplate restTemplate
    • Method Detail

      • getSiteLogEvents

        public org.springframework.http.ResponseEntity<Object> getSiteLogEvents​(String body,
                                                                                String siteId,
                                                                                javax.servlet.http.HttpServletRequest request)
                                                                         throws URISyntaxException
        Description copied from interface: ProxyService
        Proxies a request to Crafter Engine log monitor service, after checking current user has permission to access log data for siteId.
        Specified by:
        getSiteLogEvents in interface ProxyService
        Parameters:
        body - body of the request.
        siteId - ID of the crafter site
        request - the request
        Returns:
        response from Crafter Engine
        Throws:
        URISyntaxException
      • proxyEngine

        @Valid
        public @Valid org.springframework.http.ResponseEntity<Object> proxyEngine​(String body,
                                                                                  String siteId,
                                                                                  javax.servlet.http.HttpServletRequest request)
                                                                           throws URISyntaxException
        Description copied from interface: ProxyService
        Proxies a request to Crafter Engine.
        Specified by:
        proxyEngine in interface ProxyService
        Parameters:
        body - body of the request
        siteId - ID of the crafter site
        request - the request
        Returns:
        response from Crafter Engine
        Throws:
        URISyntaxException
      • getAuthoringUrl

        protected String getAuthoringUrl​(String siteId)
        Returns the full authoring url used for preview
      • getEngineManagementTokenValue

        protected String getEngineManagementTokenValue()
        Returns the management token for preview
      • getEngineProtectedUrls

        protected List<String> getEngineProtectedUrls()
        Returns the list of preview URLs that require the management token