|
Project Wonder 5.0 | |||||||||||
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 |
---|
com.webobjects.foundation.NSKeyValueCodingAdditions.DefaultImplementation, com.webobjects.foundation.NSKeyValueCodingAdditions.Utility |
Nested classes/interfaces inherited from interface com.webobjects.foundation.NSKeyValueCoding |
---|
com.webobjects.foundation.NSKeyValueCoding._BooleanFieldBinding, com.webobjects.foundation.NSKeyValueCoding._BooleanMethodBinding, com.webobjects.foundation.NSKeyValueCoding._FieldBinding, com.webobjects.foundation.NSKeyValueCoding._ForwardingBinding, com.webobjects.foundation.NSKeyValueCoding._KeyBinding, com.webobjects.foundation.NSKeyValueCoding._KeyBindingCreation, com.webobjects.foundation.NSKeyValueCoding._MethodBinding, com.webobjects.foundation.NSKeyValueCoding._NumberFieldBinding, com.webobjects.foundation.NSKeyValueCoding._NumberMethodBinding, com.webobjects.foundation.NSKeyValueCoding._ReflectionKeyBindingCreation, com.webobjects.foundation.NSKeyValueCoding.ErrorHandling, com.webobjects.foundation.NSKeyValueCoding.Null, com.webobjects.foundation.NSKeyValueCoding.UnknownKeyException, com.webobjects.foundation.NSKeyValueCoding.ValueAccessor |
Nested classes/interfaces inherited from interface com.webobjects.foundation.NSValidation |
---|
com.webobjects.foundation.NSValidation._MethodBinding, com.webobjects.foundation.NSValidation._ValidationBinding, com.webobjects.foundation.NSValidation.DefaultImplementation, com.webobjects.foundation.NSValidation.Utility, com.webobjects.foundation.NSValidation.ValidationException |
Field Summary | |
---|---|
protected static org.apache.log4j.Logger |
log
logging support |
protected com.webobjects.foundation.NSArray |
pathParts
caches the path parts |
protected com.webobjects.foundation.NSDictionary |
pathPartsByKeys
caches the path parts by keys |
protected com.webobjects.foundation.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.NSKeyValueCoding |
---|
NullValue |
Fields inherited from interface com.webobjects.foundation.NSValidation |
---|
_CLASS |
Constructor Summary | |
---|---|
ERXPathDirectAction(com.webobjects.appserver.WORequest aRequest)
Just calls super. |
Method Summary | |
---|---|
boolean |
hasPathPartForKey(java.lang.String key)
Determines if a path part exists for a given key. |
boolean |
hasPathPartForKey(java.lang.String key,
boolean caseInsensitive)
Determines if a path part exists for a given key with the option of performing a case insensitve comparison. |
java.lang.String |
pathPartForKey(java.lang.String key)
Gets a path part for a given key. |
java.lang.String |
pathPartForKeyWithDefault(java.lang.String key,
java.lang.String defaultValue)
Gets a path part for a given key, returning the default value if nothing was specified. |
java.lang.String |
pathPartForKeyWithDefault(java.lang.String key,
java.lang.String defaultValue,
boolean caseInsensitiveCompare)
Gets a path part for a given key, returning the default value if nothing was specified. |
com.webobjects.foundation.NSArray |
pathParts()
The path parts of a request correspond to to all of the pieces between the request handler key and the class name. |
com.webobjects.foundation.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; }. |
com.webobjects.foundation.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.NSKeyValueCoding |
---|
takeValueForKey, valueForKey |
Methods inherited from interface com.webobjects.foundation.NSValidation |
---|
validateTakeValueForKeyPath, validateValueForKey |
Field Detail |
---|
protected static final org.apache.log4j.Logger log
protected com.webobjects.foundation.NSArray pathParts
protected com.webobjects.foundation.NSDictionary pathPartsByKeys
protected com.webobjects.foundation.NSDictionary pathPartsByKeysCaseInsensitive
Constructor Detail |
---|
public ERXPathDirectAction(com.webobjects.appserver.WORequest aRequest)
Method Detail |
---|
public com.webobjects.foundation.NSArray pathParts()
public com.webobjects.foundation.NSDictionary pathPartsByKeys()
public com.webobjects.foundation.NSDictionary pathPartsByKeysCaseInsensitive()
public boolean hasPathPartForKey(java.lang.String key)
key
- path part key
public boolean hasPathPartForKey(java.lang.String key, boolean caseInsensitive)
key
- path part keycaseInsensitive
- key comparison should be case sensitive
public java.lang.String pathPartForKey(java.lang.String key)
key
- path part key
public java.lang.String pathPartForKeyWithDefault(java.lang.String key, java.lang.String defaultValue)
key
- path part keydefaultValue
- default value
public java.lang.String pathPartForKeyWithDefault(java.lang.String key, java.lang.String defaultValue, boolean caseInsensitiveCompare)
key
- path part keydefaultValue
- default valuecaseInsensitiveCompare
- key comparison should ignore case
|
Last updated: Tue, Feb 21, 2017 05:45 PM CET | |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |