|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.tapestry.engine.ServiceEncodingImpl
public class ServiceEncodingImpl
Implementation of ServiceEncoding
, which adds the ability to
determine when the encoding has been modified.
Field Summary | |
---|---|
protected boolean |
_modified
|
protected QueryParameterMap |
_parameters
Map of query parameter values; key is string name, value is either a string, an array of strings, or null. |
protected String |
_pathInfo
|
protected String |
_servletPath
|
Constructor Summary | |
---|---|
ServiceEncodingImpl(String servletPath)
Creates a new instance with a new map of parameters. |
|
ServiceEncodingImpl(String servletPath,
QueryParameterMap parametersMap)
|
|
ServiceEncodingImpl(String servletPath,
String pathInfo,
QueryParameterMap parameters)
|
Method Summary | |
---|---|
String[] |
getParameterNames()
Returns an array of parameter names. |
String |
getParameterValue(String name)
Returns the value for the named parameter. |
String[] |
getParameterValues(String name)
Returns the value for the named parameter. |
String |
getPathInfo()
Returns the portion of the URL after the servlet itself. |
String |
getServletPath()
Returns the servlet path for the request. |
boolean |
isModified()
|
void |
resetModified()
|
void |
setParameterValue(String name,
String value)
Sets the value for the named query parameter to the provided string. |
void |
setParameterValues(String name,
String[] values)
Sets the values for a named query parameter. |
void |
setPathInfo(String pathInfo)
|
void |
setServletPath(String servletPath)
Updates the servlet path for the encoding. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected String _servletPath
protected String _pathInfo
protected final QueryParameterMap _parameters
protected boolean _modified
Constructor Detail |
---|
public ServiceEncodingImpl(String servletPath)
public ServiceEncodingImpl(String servletPath, QueryParameterMap parametersMap)
public ServiceEncodingImpl(String servletPath, String pathInfo, QueryParameterMap parameters)
Method Detail |
---|
public boolean isModified()
public void resetModified()
public String getParameterValue(String name)
ServiceEncoding
getParameterValue
in interface ServiceEncoding
public String[] getParameterValues(String name)
ServiceEncoding
getParameterValues
in interface ServiceEncoding
public void setServletPath(String servletPath)
ServiceEncoding
setServletPath
in interface ServiceEncoding
public void setParameterValue(String name, String value)
ServiceEncoding
setParameterValue
in interface ServiceEncoding
name
- the name of the parameter to set.value
- the new value, which may be null.public void setParameterValues(String name, String[] values)
ServiceEncoding
setParameterValues
in interface ServiceEncoding
public String getServletPath()
ServiceEncoding
getServletPath
in interface ServiceEncoding
public String[] getParameterNames()
ServiceEncoding
getParameterNames
in interface ServiceEncoding
public String getPathInfo()
ServiceEncoding
getPathInfo
in interface ServiceEncoding
public void setPathInfo(String pathInfo)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |