Up
Authors
- Manuel Guesdon (
mguesdon@orange-concept.com)
-
Date: Generated at 2025-12-01
Copyright: (C) 1999-2003 Free Software Foundation, Inc.
- Declared in:
- WebObjects/GSWActionRequestHandler.h
Availability: OpenStep
GSWActionRequestHandler is a
specialized request handler that processes direct
action requests in GSWeb applications. It extends
GSWRequestHandler to handle URLs that
specify action classes and method names directly,
enabling stateless request processing and
bookmarkable URLs. This handler is responsible
for parsing action URLs, instantiating the appropriate
action classes, and invoking the specified action
methods.
GSWActionRequestHandler declares 4 Instance Variables
+ (Class)
_actionClassForName: (
NSString*)name;
Availability: OpenStep
Class method that returns the
action class for the specified class name
string.
Warning the underscore at
the start of the name of this method
indicates that it is private, for internal use
only, and you should not use the method in your code.
- (
GSWResponse*)
_handleRequest: (
GSWRequest*)aRequest;
Availability: OpenStep
Internal method that performs the actual request
handling after initial processing and validation.
Warning the underscore at the start
of the name of this method indicates that it is private,
for internal use only, and you should not use the
method in your code.
- (
NSString*)
defaultDefaultActionName;
Availability: OpenStep
Returns the default action method name used when no
specific action method is specified in the request
URL.
- (BOOL)
defaultShouldAddToStatistics;
Availability: OpenStep
Returns whether action requests should be added to
application statistics by default.
- (
GSWResponse*)
generateErrorResponseWithException: (
NSException*)error
inContext: (
GSWContext*)aContext;
Availability: OpenStep
Generates an error response when an
exception occurs during action processing. The
response includes error information and
is generated within the specified context.
- (
GSWResponse*)
generateNullResponse;
Availability: OpenStep
Generates a null response, typically used when no
content needs to be returned to the client.
- (
GSWResponse*)
generateRequestRefusalResponseForRequest: (
GSWRequest*)aRequest;
Availability: OpenStep
Generates a response that refuses the request,
typically used when the request cannot be
processed for some reason.
- (void)
getRequestActionClassNameInto: (
NSString**)actionClassNamePtr
classInto: (Class*)actionClassPtr
nameInto: (
NSString**)actionNamePtr
forPath: (
NSArray*)path;
Availability: OpenStep
Parses the request path to determine the
action class name, action class, and action method
name, storing the results in the provided pointers.
- (
NSArray*)
getRequestHandlerPathForRequest: (
GSWRequest*)aRequest;
Availability: OpenStep
Extracts and returns the path components from the
request that are relevant to action request
handling.
- (
GSWResponse*)
handleRequest: (
GSWRequest*)aRequest;
Availability: OpenStep
Main entry point for handling incoming requests. This
method processes the request and returns an
appropriate response.
- (id)
initWithDefaultActionClassName: (
NSString*)defaultActionClassName
defaultActionName: (
NSString*)defaultActionName
shouldAddToStatistics: (BOOL)shouldAddToStatistics;
Availability: OpenStep
Initializes a new action request handler with
the specified default action class name, default action
method name, and statistics tracking preference.
- (void)
registerDidHandleActionRequestWithActionNamed: (
NSString*)actionName;
Availability: OpenStep
Registers that an action request has been handled
with the specified action name for monitoring and
statistics purposes.
- (void)
registerWillHandleActionRequest;
Availability: OpenStep
Registers that an action request is about to be
handled. This method is typically called for
monitoring and statistics purposes.
Instance Variables for GSWActionRequestHandler Class
@protected Class
_actionClassClass;
Availability: OpenStep
Warning the underscore at the start of the
name of this instance variable indicates that, even
though it is not technically private, it is
intended for internal use within the package, and
you should not use the variable in other code.
@protected NSString*
_actionClassName;
Availability: OpenStep
Warning the underscore at the start of the
name of this instance variable indicates that, even
though it is not technically private, it is
intended for internal use within the package, and
you should not use the variable in other code.
@protected NSString*
_defaultActionName;
Availability: OpenStep
Warning the underscore at the start of the
name of this instance variable indicates that, even
though it is not technically private, it is
intended for internal use within the package, and
you should not use the variable in other code.
@protected BOOL
_shouldAddToStatistics;
Availability: OpenStep
Warning the underscore at the start of the
name of this instance variable indicates that, even
though it is not technically private, it is
intended for internal use within the package, and
you should not use the variable in other code.
- Declared in:
- WebObjects/GSWActionRequestHandler.h
Availability: OpenStep
Category providing class methods for creating
GSWActionRequestHandler instances
with various configurations. This category simplifies
the instantiation process by providing convenient factory
methods.
+ (id)
handler;
Availability: OpenStep
Returns a new action request handler instance with
default configuration settings.
+ (
GSWActionRequestHandler*)
handlerWithDefaultActionClassName: (
NSString*)defaultActionClassName
defaultActionName: (
NSString*)defaultActionName
shouldAddToStatistics: (BOOL)shouldAddToStatistics;
Availability: OpenStep
Returns a new action request handler instance
configured with the specified default action
class name, default action method name, and
statistics tracking preference.
Up