org.japano
Class JapanoConfig

java.lang.Object
  extended by org.japano.JapanoConfig
All Implemented Interfaces:
javax.servlet.ServletConfig

public class JapanoConfig
extends java.lang.Object
implements javax.servlet.ServletConfig

Extends javax.servlet.ServletConfig to add japano specific configuration information.

Version:
$Id: JapanoConfig.java,v 1.14 2005/11/30 21:22:23 fforw Exp $ SourceForge.net Logo
Author:
Sven Helmberger ( sven dot helmberger at gmx dot de )

Method Summary
 ActionConfig getActionConfig()
          Returns the ActionConfig for this Servlet.
 int getActionTimeout()
           
 java.lang.String getInitParameter(java.lang.String str)
           
 java.util.Enumeration getInitParameterNames()
           
 java.lang.Class getRequestType()
          Returns the type of request the japano servlet will generate.
 java.lang.String getResourceBundle()
          Getter for property resourceBundle.
 java.lang.String getScratchDir()
          Returns the directory where jsp sources and classes are generated to.
 javax.servlet.ServletContext getServletContext()
          Returns the ServletContext for the japano Servlet.
 java.lang.String getServletName()
           
 java.lang.Class getSessionType()
          Returns the type of session the japano servlet will generate.
 java.lang.String getWebAppRoot()
          Returns the root directory of the web application
 java.lang.String getWelcomeAction()
          Returns the action executed on directory access or null if there is no such action and normal web application welcome file rules apply.
 java.lang.String getWelcomeView()
          Getter for property welcomeView.
 boolean isCompileEnabled()
          Returns true if jsp compilation is enabled.
 boolean isSessionIdInPath()
          If set to true the japano servlet will encode the session id in the first path part of the webapplication context.
 boolean isViewAccessAllowed()
          Returns whether direct JSP access is allowed.
 boolean redirectAfterPost()
          if set to true the japano servlet will redirect after a HTTP POST request to a simple showView action to enable client reloading without resending form data.
 java.lang.String toString()
           
 boolean tryCookie()
          If this is true, the japano engine will first try cookies as id transport mechanism and will fall back to another mechanism only if this fails.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getActionConfig

public ActionConfig getActionConfig()
Returns the ActionConfig for this Servlet.

Returns:
ActionConfig

isCompileEnabled

public boolean isCompileEnabled()
Returns true if jsp compilation is enabled.


getActionTimeout

public int getActionTimeout()

getServletContext

public javax.servlet.ServletContext getServletContext()
Returns the ServletContext for the japano Servlet.

Specified by:
getServletContext in interface javax.servlet.ServletConfig

getSessionType

public java.lang.Class getSessionType()
Returns the type of session the japano servlet will generate. The type is always a subclass of org.japano.Session.

Returns:
Type

getRequestType

public java.lang.Class getRequestType()
Returns the type of request the japano servlet will generate. The type is always a subclass of org.japano.Request

Returns:
Type

getWebAppRoot

public java.lang.String getWebAppRoot()
Returns the root directory of the web application


getScratchDir

public java.lang.String getScratchDir()
Returns the directory where jsp sources and classes are generated to.


getInitParameter

public java.lang.String getInitParameter(java.lang.String str)
Specified by:
getInitParameter in interface javax.servlet.ServletConfig

getInitParameterNames

public java.util.Enumeration getInitParameterNames()
Specified by:
getInitParameterNames in interface javax.servlet.ServletConfig

getServletName

public java.lang.String getServletName()
Specified by:
getServletName in interface javax.servlet.ServletConfig

isViewAccessAllowed

public boolean isViewAccessAllowed()
Returns whether direct JSP access is allowed. if false direct access of JSP documents per URI is forbidden. All requests have to access actions.

Returns:
direct JSP allowed?

redirectAfterPost

public boolean redirectAfterPost()
if set to true the japano servlet will redirect after a HTTP POST request to a simple showView action to enable client reloading without resending form data.


getWelcomeAction

public java.lang.String getWelcomeAction()
Returns the action executed on directory access or null if there is no such action and normal web application welcome file rules apply.

Returns:
qualified name of the welcome action

getWelcomeView

public java.lang.String getWelcomeView()
Getter for property welcomeView.

Returns:
Value of property welcomeView.

isSessionIdInPath

public boolean isSessionIdInPath()
If set to true the japano servlet will encode the session id in the first path part of the webapplication context.

Returns:
use session-in-path as secondary id transport mechanism?

tryCookie

public boolean tryCookie()
If this is true, the japano engine will first try cookies as id transport mechanism and will fall back to another mechanism only if this fails.

Returns:
try setting a cookie?

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getResourceBundle

public java.lang.String getResourceBundle()
Getter for property resourceBundle.

Returns:
Value of property resourceBundle.