|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.planetalia.dynject.sources.HttpRequestSource
public class HttpRequestSource
Retrieves property values from the parameters sent with a HTTP request
| Constructor Summary | |
|---|---|
HttpRequestSource(javax.servlet.http.HttpServletRequest request)
Constructs a source using the specified HTTP request |
|
HttpRequestSource(javax.servlet.http.HttpServletRequest request,
java.lang.String parameterNamePrefix)
Constructs a source using the specified HTTP request and a prefix that is prepended to all property names before considering them parameter names |
|
| Method Summary | |
|---|---|
ClassPreferences |
getPropertyClass(java.lang.String propertyName)
Returns the class preferences for a property |
java.util.Set |
getPropertyNames()
Returns the set of all existing properties at the time of invocation. |
java.lang.Object |
getValue(java.lang.String propertyName)
Provides the value of a specific property |
boolean |
propertyExists(java.lang.String propertyName)
Checks whether a specific property exists. |
void |
setValue(java.lang.String propertyName,
java.lang.Object value)
Sets the value of a specific property. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public HttpRequestSource(javax.servlet.http.HttpServletRequest request)
request - HTTP request from which the parameters are going to be extracted
public HttpRequestSource(javax.servlet.http.HttpServletRequest request,
java.lang.String parameterNamePrefix)
request - HTTP request from which the parameters are going to be extractedparameterNamePrefix - Prefix to prepend to the property name| Method Detail |
|---|
public ClassPreferences getPropertyClass(java.lang.String propertyName)
IValueSource
getPropertyClass in interface IValueSourcepropertyName - Name of the property
public java.util.Set getPropertyNames()
IValueSource
getPropertyNames in interface IValueSourcepublic java.lang.Object getValue(java.lang.String propertyName)
IValueSource
getValue in interface IValueSourcepropertyName - Name of the requested property. Assumed to exist.
public boolean propertyExists(java.lang.String propertyName)
IValueSource
propertyExists in interface IValueSourcepropertyName - Name of the requested property
public void setValue(java.lang.String propertyName,
java.lang.Object value)
IValueSource
setValue in interface IValueSourcepropertyName - Name of the requested property.value - Property value.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||