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