| Method from org.apache.tiles.portlet.context.PortletParamMap Detail: |
public void clear() {
throw new UnsupportedOperationException();
}
|
public boolean containsKey(Object key) {
return (request.getParameter(key(key)) != null);
}
|
public boolean containsValue(Object value) {
Iterator< String > values = values().iterator();
while (values.hasNext()) {
if (value.equals(values.next())) {
return (true);
}
}
return (false);
}
|
public Set<String, String> entrySet() {
Set< Map.Entry< String, String > > set = new HashSet< Map.Entry< String, String > >();
Enumeration< String > keys = request.getParameterNames();
String key;
while (keys.hasMoreElements()) {
key = keys.nextElement();
set.add(new MapEntry< String, String >(key,
request.getParameter(key), false));
}
return (set);
}
|
public boolean equals(Object o) {
PortletRequest otherRequest = ((PortletParamMap) o).request;
boolean retValue = true;
synchronized (request) {
for (Enumeration< String > attribs = request.getParameterNames(); attribs
.hasMoreElements()
&& retValue;) {
String parameterName = attribs.nextElement();
retValue = request.getParameter(parameterName).equals(
otherRequest.getParameter(parameterName));
}
}
return retValue;
}
|
public String get(Object key) {
return (request.getParameter(key(key)));
}
|
public int hashCode() {
return (request.hashCode());
}
|
public boolean isEmpty() {
return (size() < 1);
}
|
public Set<String> keySet() {
Set< String > set = new HashSet< String >();
Enumeration< String > keys = request.getParameterNames();
while (keys.hasMoreElements()) {
set.add(keys.nextElement());
}
return (set);
}
|
public String put(String key,
String value) {
throw new UnsupportedOperationException();
}
|
public void putAll(Map<String, String> map) {
throw new UnsupportedOperationException();
}
|
public String remove(Object key) {
throw new UnsupportedOperationException();
}
|
public int size() {
int n = 0;
Enumeration< String > keys = request.getParameterNames();
while (keys.hasMoreElements()) {
keys.nextElement();
n++;
}
return (n);
}
|
public Collection<String> values() {
List< String > list = new ArrayList< String >();
Enumeration< String > keys = request.getParameterNames();
while (keys.hasMoreElements()) {
list.add(request.getParameter(keys.nextElement()));
}
return (list);
}
|