Up
Authors
- Manuel Guesdon (
mguesdon@orange-concept.com)
-
Date: Generated at 2025-12-01
Copyright: (C) 1999-2004 Free Software Foundation, Inc.
- Declared in:
- WebObjects/GSWAction.h
Availability: OpenStep
GSWAction is the base class for handling direct
actions in GSWeb applications. Direct actions provide
a way to bypass the typical component-based request
handling and allow for direct method invocation
based on URL parameters. Actions are stateless and
don't maintain session information unless explicitly
accessed, making them suitable for bookmarkable
URLs and RESTful interfaces.
+ (BOOL)
_isActionNamed: (
NSString*)actionName
actionOfClass: (Class)actionClass;
Availability: OpenStep
Class method that determines
whether the specified action name corresponds to a
valid action method in the given class.
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.
+ (SEL)
_selectorForActionNamed: (
NSString*)actionName
inClass: (Class)class;
Availability: OpenStep
Class method that returns the
selector for the specified action name within the
given class.
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.
- (void)
_initializeRequestSessionIDInContext: (
GSWContext*)aContext;
Availability: OpenStep
Initializes the session ID in the context based
on the current request. This is an internal method used
during action processing.
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.
- (SEL)
_selectorForActionNamed: (
NSString*)actionName;
Availability: OpenStep
Returns the selector for the specified action name
within this action instance's class.
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.
- (
GSWApplication*)
application;
Availability: OpenStep
Returns the application instance associated with
this action.
- (
GSWSession*)
existingSession;
Availability: OpenStep
Returns the existing session without creating a new
one if none exists. This method returns
nil if no session is currently active.
- (
GSWSession*)
existingSessionWithSessionID: (
NSString*)aSessionID;
Availability: OpenStep
Returns the existing session with the specified
session ID. This method returns nil if
no session exists with the given ID.
- (BOOL)
isActionNamed: (
NSString*)actionName;
Availability: OpenStep
Returns YES if self reponds to
actionName
- (
GSWComponent*)
pageWithName: (
NSString*)pageName;
Availability: OpenStep
Creates and returns a component instance with the
specified name. This is typically used to
generate response pages from action methods.
- (id<
GSWActionResults>)
performActionNamed: (
NSString*)actionName;
Availability: OpenStep
Performs the action method with the specified name
and returns the result. The result must conform to the
GSWActionResults protocol.
- (
GSWRequest*)
request;
Availability: OpenStep
Returns the request object associated with this
action.
- (
GSWSession*)
session;
Availability: OpenStep
Returns the current session, creating one if
necessary. Unlike existingSession, this method
will create a new session if one doesn't already
exist.
- (
NSString*)
sessionIDForRequest: (
GSWRequest*)aRequest;
Availability: OpenStep
Extracts and returns the session ID from the
specified request. This method is used internally
to identify existing sessions.
- Declared in:
- WebObjects/GSWAction.h
Availability: OpenStep
Category providing additional context and session
access methods for GSWAction instances. These methods
offer alternative ways to access the action's context
and session objects.
- (
GSWContext*)
_context;
Availability: OpenStep
Returns the private context instance associated
with this action. This is typically used internally by
the framework.
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.
- (
GSWSession*)
_session;
Availability: OpenStep
Returns the private session instance associated
with this action. This is typically used internally by
the framework.
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.
- (
GSWContext*)
context;
Availability: OpenStep
Returns the context associated with this action.
- (
GSWSession*)
session;
Availability: OpenStep
Returns the current session associated with this
action.
- Declared in:
- WebObjects/GSWAction.h
Availability: OpenStep
Category providing debugging and logging
functionality for GSWAction instances. These
methods allow actions to output diagnostic
information during development and debugging
phases.
+ (void)
logWithFormat: (
NSString*)format
,...;
Availability: OpenStep
Class method that logs a
formatted message to the application's log
output. Accepts variable arguments like
printf-style formatting.
- (void)
_debugWithString: (
NSString*)string;
Availability: OpenStep
Outputs a debug message with the specified
string. This is typically used for
internal debugging purposes.
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.
- (void)
debugWithFormat: (
NSString*)format
,...;
Availability: OpenStep
Outputs a formatted debug message with variable
arguments. This method provides printf-style
formatting for debug output.
- (void)
logWithFormat: (
NSString*)format
,...;
Availability: OpenStep
Logs a formatted message to the application's log
output. Accepts variable arguments like
printf-style formatting.
- (void)
logWithString: (
NSString*)string;
Availability: OpenStep
Logs the specified string to the
application's log output.
Up