ERXPathDirectAction Class Reference

Inherits com::webobjects::appserver::WODirectAction.

Collaboration diagram for ERXPathDirectAction:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 ERXPathDirectAction (WORequest aRequest)
boolean hasPathPartForKey (String key, boolean caseInsensitive)
boolean hasPathPartForKey (String key)
String pathPartForKey (String key)
String pathPartForKeyWithDefault (String key, String defaultValue, boolean caseInsensitiveCompare)
String pathPartForKeyWithDefault (String key, String defaultValue)
NSArray pathParts ()
NSDictionary pathPartsByKeys ()
NSDictionary pathPartsByKeysCaseInsensitive ()

Protected Attributes

NSArray pathParts
NSDictionary pathPartsByKeys
NSDictionary pathPartsByKeysCaseInsensitive

Static Protected Attributes

static final Logger log = Logger.getLogger(ERXPathDirectAction.class)


Constructor & Destructor Documentation

ERXPathDirectAction ( WORequest  aRequest  ) 

Just calls super.


Member Function Documentation

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.

Parameters:
key path part key
caseInsensitive key comparison should be case sensitive
Returns:
if a path was specified

boolean hasPathPartForKey ( String  key  ) 

Determines if a path part exists for a given key.

Parameters:
key path part key
Returns:
if a path was specified

String pathPartForKey ( String  key  ) 

Gets a path part for a given key.

Parameters:
key path part key
Returns:
path part for the key

String pathPartForKeyWithDefault ( String  key,
String  defaultValue,
boolean  caseInsensitiveCompare 
)

Gets a path part for a given key, returning the default value if nothing was specified. Adds the option for a case insensitive comparison.

Parameters:
key path part key
defaultValue default value
caseInsensitiveCompare key comparison should ignore case
Returns:
path part for the key or the default value

String pathPartForKeyWithDefault ( String  key,
String  defaultValue 
)

Gets a path part for a given key, returning the default value if nothing was specified.

Parameters:
key path part key
defaultValue default value
Returns:
path part for the key or the default value

NSArray pathParts (  ) 

The path parts of a request correspond to to all of the pieces between the request handler key and the class name. For instance given the direct action path /WebObjects/MyApp.woa/wpa/foo/bar/MyDirectActionClass/action would produce the path parts (foo, bar).

Returns:
array of path parts for the given request

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; }. In the current for this method does not handle multiple keys with the same name.

Returns:
path parts broken down by key

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; }.

Returns:
path parts by case insensitive key


Member Data Documentation

final Logger log = Logger.getLogger(ERXPathDirectAction.class) [static, protected]

logging support

NSArray pathParts [protected]

caches the path parts

NSDictionary pathPartsByKeys [protected]

caches the path parts by keys

NSDictionary pathPartsByKeysCaseInsensitive [protected]

caches the path parts by case insensitive keys


The documentation for this class was generated from the following file:

Generated on Sat May 26 06:43:02 2012 for Project Wonder by  doxygen 1.5.8