Class ProxyServiceImpl
java.lang.Object
org.craftercms.studio.impl.v2.service.proxy.ProxyServiceImpl
- All Implemented Interfaces:
ProxyService
Default implementation for
ProxyService
.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity
<Object> getSiteLogEvents
(String body, String siteId, jakarta.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, jakarta.servlet.http.HttpServletRequest request) Proxies a request to Crafter Engine.
-
Field Details
-
proxyServiceInternal
-
-
Constructor Details
-
ProxyServiceImpl
@ConstructorProperties("proxyServiceInternal") public ProxyServiceImpl(ProxyService proxyServiceInternal)
-
-
Method Details
-
getSiteLogEvents
public org.springframework.http.ResponseEntity<Object> getSiteLogEvents(String body, String siteId, jakarta.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
- if request URI is not validSiteNotFoundException
- if site is not found
-
proxyEngine
@Valid public @Valid org.springframework.http.ResponseEntity<Object> proxyEngine(String body, @NotEmpty @NotEmpty String siteId, jakarta.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
- if request URI is not validSiteNotFoundException
- if site is not found
-