Package org.bonitasoft.engine.core.form
Class ExternalURLAdapter
java.lang.Object
org.bonitasoft.engine.core.form.ExternalURLAdapter
- All Implemented Interfaces:
URLAdapter
- Author:
- Baptiste Mesta, Anthony Birembaut
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionadapt an url based on a contextprotected voidappendParametersToURL(StringBuffer url, Map<String, String[]> parameters) protected voidappendParameterToURL(StringBuffer newURL, String key, String[] value) protected voidappendSeparator(StringBuffer buffer, String initialSeparator) getId()
-
Constructor Details
-
ExternalURLAdapter
public ExternalURLAdapter()
-
-
Method Details
-
adapt
public String adapt(String url, String key, Map<String, Serializable> context) throws SExecutionExceptionDescription copied from interface:URLAdapteradapt an url based on a context- Specified by:
adaptin interfaceURLAdapter- Parameters:
url- the base urlkey- the url keycontext- the provided context- Returns:
- the new url
- Throws:
SExecutionException- when the URL rewriting fails
-
appendParametersToURL
protected void appendParametersToURL(StringBuffer url, Map<String, String[]> parameters) throws SExecutionException- Throws:
SExecutionException
-
appendParameterToURL
-
appendSeparator
-
getId
- Specified by:
getIdin interfaceURLAdapter- Returns:
- the identifier for this url adapter
-