Package com.composum.sling.core.proxy
Interface GenericProxyService
-
- All Known Implementing Classes:
GenericProxyRequest
public interface GenericProxyService
the proxy request service interface
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
doProxy(@NotNull org.apache.sling.api.SlingHttpServletRequest request, @NotNull org.apache.sling.api.SlingHttpServletResponse response, @NotNull String targetUrl)
Handles the proxy request if appropriate (target pattern matches and access allowed)@NotNull String
getName()
return the key of the service
-
-
-
Method Detail
-
getName
@NotNull @NotNull String getName()
return the key of the service
-
doProxy
boolean doProxy(@NotNull @NotNull org.apache.sling.api.SlingHttpServletRequest request, @NotNull @NotNull org.apache.sling.api.SlingHttpServletResponse response, @NotNull @NotNull String targetUrl) throws IOException
Handles the proxy request if appropriate (target pattern matches and access allowed)- Parameters:
request
- the proxy requestresponse
- the response for the answertargetUrl
- the url of the request which is addressing the target- Returns:
- 'true' if the request is supported by the service, allowed for the user and handle by the service
- Throws:
IOException
-
-