Class DefaultUrlRewriter
java.lang.Object
de.hybris.platform.xyformsservices.proxy.orbeonservices.impl.DefaultUrlRewriter
- All Implemented Interfaces:
UrlRewriter
Utils for modifying Orbeon content.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final Stringprotected static final intprotected static final intprotected static final intprotected static final Stringprotected static final intprotected static final Stringprotected static final Patternprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddecodeQueryString(String queryString) protected StringescapeXMLMinimal(String str) extractNamespace(javax.servlet.http.HttpServletRequest request) Extracts the namespace coming from client.protected StringgetStringFromObjectArray(Object[] values) Rewrites resource addressesprotected String
-
Field Details
-
BASE_TAG
- See Also:
-
START_TAG
- See Also:
-
END_TAG
- See Also:
-
BASE_TAG_LENGTH
protected static final int BASE_TAG_LENGTH -
END_TAG_LENGTH
protected static final int END_TAG_LENGTH -
BUFFER_CAPACITY
protected static final int BUFFER_CAPACITY- See Also:
-
WSRP_URL_TYPE_PARAM
- See Also:
-
WSRP_MODE_PARAM
- See Also:
-
WSRP_WINDOW_STATE_PARAM
- See Also:
-
WSRP_NAVIGATIONAL_STATE_PARAM
- See Also:
-
URL_TYPE_BLOCKING_ACTION
- See Also:
-
URL_TYPE_RENDER
- See Also:
-
URL_TYPE_RESOURCE
- See Also:
-
PATH_PARAMETER_NAME
- See Also:
-
PATTERN_AMP
-
STANDARD_PARAMETER_ENCODING
- See Also:
-
DOUBLE_BASE_TAG_LENGTH
protected static final int DOUBLE_BASE_TAG_LENGTH -
SPECIAL_CHARACTER
- See Also:
-
-
Constructor Details
-
DefaultUrlRewriter
public DefaultUrlRewriter()
-
-
Method Details
-
extractNamespace
Description copied from interface:UrlRewriterExtracts the namespace coming from client.- Specified by:
extractNamespacein interfaceUrlRewriter
-
rewrite
public String rewrite(String content, String prefix, String namespace, boolean encodeForXML) throws UrlRewriterException Description copied from interface:UrlRewriterRewrites resource addresses- Specified by:
rewritein interfaceUrlRewriter- Parameters:
content- Content to be parsed for resource URLsprefix- Prefix to be prepended to URLsnamespace- Prefix used for html id'sencodeForXML- If XML should be encoded (& as &)- Throws:
UrlRewriterException
-
getStringFromObjectArray
-
wsrpToURL
protected String wsrpToURL(String encodedURL, String prefix, String namespace) throws UrlRewriterException - Throws:
UrlRewriterException
-
addValueToStringArrayMap
-
decodeQueryString
- Throws:
UrlRewriterException
-
escapeXMLMinimal
-