public interface ProxyService
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
extractNamespace(HttpServletRequest request)
Extracts the namespace from the client request.
|
java.util.Map<java.lang.String,java.lang.String> |
getExtraHeaders()
Returns the extra headers configured for the application.
|
java.lang.String |
getNextRandomNamespace()
Generates a random namespace.
|
void |
proxy(HttpServletRequest request,
HttpServletResponse response,
java.lang.String namespace,
java.lang.String url,
boolean forceGetMethod,
java.util.Map<java.lang.String,java.lang.String> headers)
Proxies content.
|
java.lang.String |
rewriteURL(java.lang.String url,
boolean embeddable)
Rewrites a URL to be used for the proxy.
|
java.lang.String |
rewriteURL(java.lang.String applicationId,
java.lang.String formId,
java.lang.String formDataId)
Rewrites a URL to be used for the proxy.
|
java.lang.String |
rewriteURL(java.lang.String applicationId,
java.lang.String formId,
java.lang.String formDataId,
boolean editable)
Rewrites a URL to be used for the proxy.
|
java.lang.String rewriteURL(java.lang.String applicationId,
java.lang.String formId,
java.lang.String formDataId)
throws java.net.MalformedURLException
applicationId - the application IdformId - the form IdformDataId - the form data Idjava.net.MalformedURLException - if result URL is invalidjava.lang.String rewriteURL(java.lang.String applicationId,
java.lang.String formId,
java.lang.String formDataId,
boolean editable)
throws java.net.MalformedURLException
applicationId - the application IdformId - the form IdformDataId - the form data Ideditable - the flag that specifies whether form should be editable or notjava.net.MalformedURLException - if result URL is invalidjava.lang.String rewriteURL(java.lang.String url,
boolean embeddable)
throws java.net.MalformedURLException
url - the url path to be rewrittenembeddable - the flag that specifies if the rewriter should produce a URL that produces embeddable contentjava.net.MalformedURLException - if result URL is invalidjava.lang.String getNextRandomNamespace()
java.lang.String extractNamespace(HttpServletRequest request)
request - the request to get namespace fromjava.util.Map<java.lang.String,java.lang.String> getExtraHeaders()
void proxy(HttpServletRequest request,
HttpServletResponse response,
java.lang.String namespace,
java.lang.String url,
boolean forceGetMethod,
java.util.Map<java.lang.String,java.lang.String> headers)
throws ProxyException
request - the HttpServletRequest associated to the callresponse - the HttpServletResponse associated to the callnamespace - the namespace for HTML element's id generationurl - the url to be calledforceGetMethod - the flag for specifying if only "GET" method should be used, useful when proxying contentheaders - extra headers to be passed to the proxy serviceProxyException - if request cannot be proxiedCopyright © 2018 SAP SE. All Rights Reserved.