Interface ProxyService
-
- All Known Implementing Classes:
ProxyServiceImpl
,ProxyServiceInternalImpl
public interface ProxyService
Provides functionality to proxy request to Crafter Engine- Since:
- 4.0.1
- Author:
- jmendeza
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description org.springframework.http.ResponseEntity<Object>
getSiteLogEvents(String body, String siteId, javax.servlet.http.HttpServletRequest request)
Proxies a request to Crafter Engine log monitor service, after checking current user has permission to access log data for siteId.org.springframework.http.ResponseEntity<Object>
proxyEngine(String body, String siteId, javax.servlet.http.HttpServletRequest request)
Proxies a request to Crafter Engine.
-
-
-
Method Detail
-
proxyEngine
org.springframework.http.ResponseEntity<Object> proxyEngine(String body, String siteId, javax.servlet.http.HttpServletRequest request) throws URISyntaxException, SiteNotFoundException
Proxies a request to Crafter Engine.- Parameters:
body
- body of the requestsiteId
- ID of the crafter siterequest
- the request- Returns:
- response from Crafter Engine
- Throws:
URISyntaxException
SiteNotFoundException
-
getSiteLogEvents
org.springframework.http.ResponseEntity<Object> getSiteLogEvents(String body, String siteId, javax.servlet.http.HttpServletRequest request) throws URISyntaxException, SiteNotFoundException
Proxies a request to Crafter Engine log monitor service, after checking current user has permission to access log data for siteId.- Parameters:
body
- body of the request.siteId
- ID of the crafter siterequest
- the request- Returns:
- response from Crafter Engine
- Throws:
URISyntaxException
SiteNotFoundException
-
-