Class URLMethodWithParameters
- java.lang.Object
-
- ch.systemsx.cisd.openbis.generic.shared.basic.URLMethodWithParameters
-
- All Implemented Interfaces:
com.google.gwt.user.client.rpc.IsSerializable
public class URLMethodWithParameters extends java.lang.Object implements com.google.gwt.user.client.rpc.IsSerializable
Helper class to create URL's with parameters. Characters in path, parameter names and values are URL encoded except '0'-'9', 'a'-'z', 'A'-'Z', ':', '/', '.', '*', '-', and '_'. Space character is replaced by '+'.
-
-
Constructor Summary
Constructors Constructor Description URLMethodWithParameters(java.lang.String methodName)
Create an instance with specified method URL without parameters.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addParameter(java.lang.String parameterName, java.lang.Object value)
Adds a parameter with specified name and value (with encoding).void
addParameterWithoutEncoding(java.lang.String parameterName, java.lang.Object value)
Adds a parameter with specified name and value (without encoding).static java.lang.String
createEmbededImageHtml(java.lang.String imageURL, java.lang.String linkURLOrNull, int width, int height)
Creates HTML which displays an image linking to the given URL (if it is specified).static java.lang.String
createEmbededLinkHtml(java.lang.String linkText, java.lang.String linkUrl, java.lang.String linkAlign)
Creates HTML which displays a link.void
startHistoryToken()
Sets '#' as the next separator.java.lang.String
toString()
java.lang.String
toStringWithoutDelimiterPrefix()
-
-
-
Method Detail
-
addParameterWithoutEncoding
public void addParameterWithoutEncoding(java.lang.String parameterName, java.lang.Object value)
Adds a parameter with specified name and value (without encoding).
-
addParameter
public void addParameter(java.lang.String parameterName, java.lang.Object value)
Adds a parameter with specified name and value (with encoding).
-
startHistoryToken
public void startHistoryToken()
Sets '#' as the next separator.
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
toStringWithoutDelimiterPrefix
public java.lang.String toStringWithoutDelimiterPrefix()
-
createEmbededImageHtml
public static java.lang.String createEmbededImageHtml(java.lang.String imageURL, java.lang.String linkURLOrNull, int width, int height)
Creates HTML which displays an image linking to the given URL (if it is specified).
-
createEmbededLinkHtml
public static java.lang.String createEmbededLinkHtml(java.lang.String linkText, java.lang.String linkUrl, java.lang.String linkAlign)
Creates HTML which displays a link.
-
-