public class ERXPathDirectAction
extends com.webobjects.appserver.WODirectAction
ERXPathDirectActionRequestHandler
for more information.com.webobjects.foundation.NSKeyValueCodingAdditions.DefaultImplementation, com.webobjects.foundation.NSKeyValueCodingAdditions.Utility
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.MapImplementation, com.webobjects.foundation.NSKeyValueCoding.Null<T>, com.webobjects.foundation.NSKeyValueCoding.UnknownKeyException, com.webobjects.foundation.NSKeyValueCoding.ValueAccessor
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
Modifier and Type | Field and Description |
---|---|
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
|
Constructor and Description |
---|
ERXPathDirectAction(com.webobjects.appserver.WORequest aRequest)
Just calls super.
|
Modifier and Type | Method and Description |
---|---|
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; }.
|
_componentAction, defaultAction, getSessionIDForRequest, performActionNamed, takeFormValueArraysForKeyArray, takeFormValuesForKeyArray
_isActionOnClass, _methodForAction, _preloadAllActionsOnClass, canAccessFieldsDirectly, context, debugString, existingSession, handleQueryWithUnboundKey, handleTakeValueForUnboundKey, initializeRequestSessionIDInContext, languages, logString, pageWithName, request, session, setLanguages, takeValueForKey, takeValueForKeyPath, toString, unableToSetNullForKey, validateTakeValueForKeyPath, validateValueForKey, valueForKey, valueForKeyPath
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
handleQueryWithUnboundKey, handleTakeValueForUnboundKey, unableToSetNullForKey
takeValueForKeyPath, valueForKeyPath
protected NSArray pathParts
protected NSDictionary pathPartsByKeys
protected NSDictionary pathPartsByKeysCaseInsensitive
public ERXPathDirectAction(com.webobjects.appserver.WORequest aRequest)
public NSArray pathParts()
public NSDictionary pathPartsByKeys()
public NSDictionary pathPartsByKeysCaseInsensitive()
public boolean hasPathPartForKey(String key)
key
- path part keypublic boolean hasPathPartForKey(String key, boolean caseInsensitive)
key
- path part keycaseInsensitive
- key comparison should be case sensitivepublic String pathPartForKey(String key)
key
- path part keypublic String pathPartForKeyWithDefault(String key, String defaultValue)
key
- path part keydefaultValue
- default valuepublic String pathPartForKeyWithDefault(String key, String defaultValue, boolean caseInsensitiveCompare)
key
- path part keydefaultValue
- default valuecaseInsensitiveCompare
- key comparison should ignore caseCopyright © 2002 – 2020 Project Wonder.