public abstract class MockBaseURL extends java.lang.Object implements BaseURL
BaseURL
interface.Modifier and Type | Field and Description |
---|---|
protected java.util.Map<java.lang.String,java.lang.String[]> |
parameters |
static java.lang.String |
URL_TYPE_ACTION |
static java.lang.String |
URL_TYPE_RENDER |
Constructor and Description |
---|
MockBaseURL() |
Modifier and Type | Method and Description |
---|---|
void |
addProperty(java.lang.String key,
java.lang.String value) |
protected java.lang.String |
encodeParameter(java.lang.String name,
java.lang.String value) |
protected java.lang.String |
encodeParameter(java.lang.String name,
java.lang.String[] values) |
java.lang.String |
getParameter(java.lang.String name) |
java.util.Map<java.lang.String,java.lang.String[]> |
getParameterMap() |
java.util.Set<java.lang.String> |
getParameterNames() |
java.lang.String[] |
getParameterValues(java.lang.String name) |
java.util.Map<java.lang.String,java.lang.String[]> |
getProperties() |
boolean |
isSecure() |
void |
setParameter(java.lang.String key,
java.lang.String value) |
void |
setParameter(java.lang.String key,
java.lang.String[] values) |
void |
setParameters(java.util.Map<java.lang.String,java.lang.String[]> parameters) |
void |
setProperty(java.lang.String key,
java.lang.String value) |
void |
setSecure(boolean secure) |
void |
write(java.io.Writer out) |
void |
write(java.io.Writer out,
boolean escapeXML) |
public static final java.lang.String URL_TYPE_RENDER
public static final java.lang.String URL_TYPE_ACTION
protected final java.util.Map<java.lang.String,java.lang.String[]> parameters
public void setParameter(java.lang.String key, java.lang.String value)
setParameter
in interface BaseURL
public void setParameter(java.lang.String key, java.lang.String[] values)
setParameter
in interface BaseURL
public void setParameters(java.util.Map<java.lang.String,java.lang.String[]> parameters)
setParameters
in interface BaseURL
public java.util.Set<java.lang.String> getParameterNames()
public java.lang.String getParameter(java.lang.String name)
public java.lang.String[] getParameterValues(java.lang.String name)
public java.util.Map<java.lang.String,java.lang.String[]> getParameterMap()
getParameterMap
in interface BaseURL
public void setSecure(boolean secure) throws PortletSecurityException
setSecure
in interface BaseURL
PortletSecurityException
public boolean isSecure()
public void write(java.io.Writer out) throws java.io.IOException
public void write(java.io.Writer out, boolean escapeXML) throws java.io.IOException
public void addProperty(java.lang.String key, java.lang.String value)
addProperty
in interface BaseURL
public void setProperty(java.lang.String key, java.lang.String value)
setProperty
in interface BaseURL
public java.util.Map<java.lang.String,java.lang.String[]> getProperties()
protected java.lang.String encodeParameter(java.lang.String name, java.lang.String value)
protected java.lang.String encodeParameter(java.lang.String name, java.lang.String[] values)