Class ProxyServiceImpl
- java.lang.Object
-
- org.craftercms.studio.impl.v2.service.proxy.ProxyServiceImpl
-
- All Implemented Interfaces:
ProxyService
public class ProxyServiceImpl extends Object implements ProxyService
Default implementation forProxyService
.
-
-
Field Summary
Fields Modifier and Type Field Description protected ProxyService
proxyServiceInternal
protected SiteService
siteService
-
Constructor Summary
Constructors Constructor Description ProxyServiceImpl(SiteService siteService, ProxyService proxyServiceInternal)
-
Method Summary
All Methods Instance Methods Concrete 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.@Valid org.springframework.http.ResponseEntity<Object>
proxyEngine(String body, @NotEmpty String siteId, javax.servlet.http.HttpServletRequest request)
Proxies a request to Crafter Engine.
-
-
-
Field Detail
-
siteService
protected final SiteService siteService
-
proxyServiceInternal
protected final ProxyService proxyServiceInternal
-
-
Constructor Detail
-
ProxyServiceImpl
@ConstructorProperties({"siteService","proxyServiceInternal"}) public ProxyServiceImpl(SiteService siteService, ProxyService proxyServiceInternal)
-
-
Method Detail
-
getSiteLogEvents
public org.springframework.http.ResponseEntity<Object> getSiteLogEvents(String body, String siteId, javax.servlet.http.HttpServletRequest request) throws URISyntaxException, SiteNotFoundException
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 interfaceProxyService
- Parameters:
body
- body of the request.siteId
- ID of the crafter siterequest
- the request- Returns:
- response from Crafter Engine
- Throws:
URISyntaxException
SiteNotFoundException
-
proxyEngine
@Valid public @Valid org.springframework.http.ResponseEntity<Object> proxyEngine(String body, @NotEmpty @NotEmpty String siteId, javax.servlet.http.HttpServletRequest request) throws URISyntaxException, SiteNotFoundException
Description copied from interface:ProxyService
Proxies a request to Crafter Engine.- Specified by:
proxyEngine
in interfaceProxyService
- Parameters:
body
- body of the requestsiteId
- ID of the crafter siterequest
- the request- Returns:
- response from Crafter Engine
- Throws:
URISyntaxException
SiteNotFoundException
-
-