|
Project Wonder 5.0.0.8794 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.webobjects.appserver.WOAction
com.webobjects.appserver.WODirectAction
er.extensions.appserver.ERXPathDirectAction
public class ERXPathDirectAction
Utility direct action class that provides a bunch of nice utility methods if the direct action is accessed via a path direct action. See for more information.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface com.webobjects.foundation.NSKeyValueCodingAdditions |
|---|
NSKeyValueCodingAdditions.DefaultImplementation, NSKeyValueCodingAdditions.Utility |
| Nested classes/interfaces inherited from interface com.webobjects.foundation.NSValidation |
|---|
NSValidation._MethodBinding, NSValidation._ValidationBinding, NSValidation.DefaultImplementation, NSValidation.Utility, NSValidation.ValidationException |
| Field Summary | |
|---|---|
protected static Logger |
log
logging support |
protected NSArray |
pathParts
caches the path parts |
protected NSDictionary |
pathPartsByKeys
caches the path parts by keys |
protected NSDictionary |
pathPartsByKeysCaseInsensitive
caches the path parts by case insensitive keys |
| Fields inherited from class com.webobjects.appserver.WODirectAction |
|---|
actionText |
| Fields inherited from class com.webobjects.appserver.WOAction |
|---|
_actionClasses, _context |
| Fields inherited from interface com.webobjects.foundation.NSKeyValueCoding.ErrorHandling |
|---|
_CLASS |
| Fields inherited from interface com.webobjects.foundation.NSKeyValueCodingAdditions |
|---|
_CLASS, _KeyPathSeparatorChar, KeyPathSeparator |
| Fields inherited from interface com.webobjects.foundation.NSValidation |
|---|
_CLASS |
| Constructor Summary | |
|---|---|
ERXPathDirectAction(WORequest aRequest)
Just calls super. |
|
| Method Summary | |
|---|---|
boolean |
hasPathPartForKey(String key)
Determines if a path part exists for a given key. |
boolean |
hasPathPartForKey(String key,
boolean caseInsensitive)
Determines if a path part exists for a given key with the option of performing a case insensitve comparison. |
String |
pathPartForKey(String key)
Gets a path part for a given key. |
String |
pathPartForKeyWithDefault(String key,
String defaultValue)
Gets a path part for a given key, returning the default value if nothing was specified. |
String |
pathPartForKeyWithDefault(String key,
String defaultValue,
boolean caseInsensitiveCompare)
Gets a path part for a given key, returning the default value if nothing was specified. |
NSArray |
pathParts()
The path parts of a request correspond to to all of the pieces between the request handler key and the class name. |
NSDictionary |
pathPartsByKeys()
Given an array of path parts (foo=food, bar=baz, gee) this will produce a dictionary of the form: { foo=food; bar=baz; }. |
NSDictionary |
pathPartsByKeysCaseInsensitive()
Same method as pathPartsByKeys except all of the keys have been down cased, ie for path parts (Foo=food, bAr=baz, gee) this will give a dictionary of the form { foo=food; bar=baz; }. |
| Methods inherited from class com.webobjects.appserver.WODirectAction |
|---|
_componentAction, defaultAction, getSessionIDForRequest, performActionNamed, takeFormValueArraysForKeyArray, takeFormValuesForKeyArray |
| Methods inherited from class com.webobjects.appserver.WOAction |
|---|
_isActionOnClass, _methodForAction, _preloadAllActionsOnClass, canAccessFieldsDirectly, context, debugString, existingSession, handleQueryWithUnboundKey, handleTakeValueForUnboundKey, initializeRequestSessionIDInContext, languages, logString, pageWithName, request, session, setLanguages, takeValueForKey, takeValueForKeyPath, toString, unableToSetNullForKey, validateTakeValueForKeyPath, validateValueForKey, valueForKey, valueForKeyPath |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.webobjects.foundation.NSKeyValueCoding.ErrorHandling |
|---|
handleQueryWithUnboundKey, handleTakeValueForUnboundKey, unableToSetNullForKey |
| Methods inherited from interface com.webobjects.foundation.NSKeyValueCodingAdditions |
|---|
takeValueForKeyPath, valueForKeyPath |
| Methods inherited from interface com.webobjects.foundation.NSValidation |
|---|
validateTakeValueForKeyPath, validateValueForKey |
| Field Detail |
|---|
protected static final Logger log
protected NSArray pathParts
protected NSDictionary pathPartsByKeys
protected NSDictionary pathPartsByKeysCaseInsensitive
| Constructor Detail |
|---|
public ERXPathDirectAction(WORequest aRequest)
| Method Detail |
|---|
public NSArray pathParts()
public NSDictionary pathPartsByKeys()
public NSDictionary pathPartsByKeysCaseInsensitive()
public boolean hasPathPartForKey(String key)
key - path part key
public boolean hasPathPartForKey(String key,
boolean caseInsensitive)
key - path part keycaseInsensitive - key comparison should be case sensitive
public String pathPartForKey(String key)
key - path part key
public String pathPartForKeyWithDefault(String key,
String defaultValue)
key - path part keydefaultValue - default value
public String pathPartForKeyWithDefault(String key,
String defaultValue,
boolean caseInsensitiveCompare)
key - path part keydefaultValue - default valuecaseInsensitiveCompare - key comparison should ignore case
|
Last updated: Thu, Jan 8, 2009 12:32 PM EST | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||