org.chwf.servlet.engine
Class MethodConfig

java.lang.Object
  |
  +--org.chwf.servlet.engine.MethodConfig

public class MethodConfig
extends java.lang.Object

Class managing controller method configuration data.

Author:
Paul Strack

Constructor Summary
MethodConfig(ControllerConfig controllerConfig, java.lang.reflect.Method method)
          Constructor.
 
Method Summary
 java.lang.Class getController()
          The controller class.
 ControllerConfig getControllerConfig()
          The controller config.
 java.lang.String getDefaultErrorPage()
          The default error page for the method.
 java.lang.String getDefaultView()
          The default view for the method.
 java.lang.reflect.Method getMethod()
          The method.
 java.lang.Object[] getParameterDefaults()
          Get the method parameter defaults.
 java.lang.String[] getParameterNames()
          Get the method parameter names parameter names.
 java.lang.String[] getRoles()
          Get the security roles for this controller method.
 boolean isInitializer()
          Whether this method is an initializers (getter).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MethodConfig

public MethodConfig(ControllerConfig controllerConfig,
                    java.lang.reflect.Method method)
Constructor.
Parameters:
controllerConfig - The controller config.
method - The method.
Method Detail

getController

public java.lang.Class getController()
The controller class.
Returns:
The controller class.

getMethod

public java.lang.reflect.Method getMethod()
The method.
Returns:
The method.

isInitializer

public boolean isInitializer()
Whether this method is an initializers (getter).
Returns:
Whether this method is an initializers (getter).

getParameterNames

public java.lang.String[] getParameterNames()
                                     throws ControllerException
Get the method parameter names parameter names.
Returns:
The parameter names as an array of strings.
Throws:
ControllerException - If parameter are not properly configured.

getParameterDefaults

public java.lang.Object[] getParameterDefaults()
                                        throws ControllerException
Get the method parameter defaults.
Returns:
Default values for all parameters.
Throws:
ControllerException - If default list is incorrect.

getDefaultView

public java.lang.String getDefaultView()
The default view for the method.
Returns:
The default view for the method.

getDefaultErrorPage

public java.lang.String getDefaultErrorPage()
The default error page for the method.
Returns:
The default error page for the method.

getRoles

public java.lang.String[] getRoles()
Get the security roles for this controller method.
Returns:
The array of roles.

getControllerConfig

public ControllerConfig getControllerConfig()
The controller config.
Returns:
The controller config.


Copyright © 2002-2004, Paul Strack. All Rights Reserved.