Project Wonder 2.0

er.extensions
Class ERXDirectActionRequestHandler

java.lang.Object
  extended bycom.webobjects.appserver.WORequestHandler
      extended bycom.webobjects.appserver._private.WOActionRequestHandler
          extended bycom.webobjects.appserver._private.WODirectActionRequestHandler
              extended byer.extensions.ERXDirectActionRequestHandler
Direct Known Subclasses:
ERXPathDirectActionRequestHandler

public class ERXDirectActionRequestHandler
extends WODirectActionRequestHandler

Improved direct action request handler. Will automatically handle character encodings and checks the ERXWOResponseCache before actually calling the action. NOTE: This class is multi thread safe.


Field Summary
protected static Boolean automaticMessageEncodingEnabled
          caches if automatic message encoding is enabled, defaults to true
static ERXLogger log
          logging support
 
Fields inherited from class com.webobjects.appserver._private.WOActionRequestHandler
actionClassClass, actionClassName, CLASS_NOT_FOUND, defaultActionName, INSTANTIATION, INVALID_PATH, INVOCATION, shouldAddToStatistics
 
Fields inherited from class com.webobjects.appserver.WORequestHandler
DidHandleRequestNotification
 
Constructor Summary
ERXDirectActionRequestHandler()
           
ERXDirectActionRequestHandler(String actionClassName, String defaultActionName, boolean shouldAddToStatistics)
           
 
Method Summary
static boolean automaticMessageEncodingEnabled()
          Allows the disabling of automatic message encoding.
 WOResponse handleRequest(WORequest request)
           
 
Methods inherited from class com.webobjects.appserver._private.WODirectActionRequestHandler
allowsContentInputStream, defaultActionClassName, generateErrorResponse, generateRequestRefusal, getRequestHandlerPathForRequest, handler, nullResponse, registerDidHandleActionRequestWithActionNamed, registerWillHandleActionRequest, setAllowsContentInputStream
 
Methods inherited from class com.webobjects.appserver._private.WOActionRequestHandler
_actionClassForName, _handleRequest, _putComponentsToSleepInContext, defaultDefaultActionName, defaultShouldAddToStatistics, getActionInstance, getRequestActionClassAndNameForPath, isSessionIDInRequest, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

log

public static final ERXLogger log
logging support


automaticMessageEncodingEnabled

protected static Boolean automaticMessageEncodingEnabled
caches if automatic message encoding is enabled, defaults to true

Constructor Detail

ERXDirectActionRequestHandler

public ERXDirectActionRequestHandler()

ERXDirectActionRequestHandler

public ERXDirectActionRequestHandler(String actionClassName,
                                     String defaultActionName,
                                     boolean shouldAddToStatistics)
Method Detail

automaticMessageEncodingEnabled

public static boolean automaticMessageEncodingEnabled()
Allows the disabling of automatic message encoding. Useful for backend services where you want to just use the default encoding.

Returns:
if automatic message encoding is enabled.

handleRequest

public WOResponse handleRequest(WORequest request)

Last updated: Do, Dez 9, 2004 • 12:46 PM CET

Copyright © 2002 – 2004 Project Wonder.