Package com.composum.sling.core.proxy
Interface GenericProxyService
-
- All Known Implementing Classes:
GenericProxyRequest
public interface GenericProxyServicethe proxy request service interface
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleandoProxy(@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 StringgetName()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 IOExceptionHandles 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
-
-