net.trajano.twiff.internal.servlet
Class ServletConfiguration

java.lang.Object
  extended by net.trajano.twiff.internal.servlet.ServletConfiguration
All Implemented Interfaces:
Configuration, RedirectConfiguration, ViewServletConfiguration

public class ServletConfiguration
extends Object
implements ViewServletConfiguration, RedirectConfiguration

Author:
Archimedes Trajano

Constructor Summary
ServletConfiguration(ServletConfig servletConfig)
           
 
Method Summary
 String getDispatchPattern()
           This is a URL pattern that the view servlet includes in the request dispatcher to do the actual display.
 String getPackageContext()
          Returns the package context.
 String getRedirectPage()
          This is the page that would be displayed during the redirect within the servlet context.
 int getRedirectPageTimeout()
          This is the amount of time in seconds that the redirect page would wait before reloading itself.
 String getTokenFieldName()
          Returns the name of the token field.
 boolean isRedirectPageDefined()
          This returns true if the redirect page was defined.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServletConfiguration

public ServletConfiguration(ServletConfig servletConfig)
Parameters:
servletConfig - servlet configuration to get the servlet context.
Method Detail

getTokenFieldName

public String getTokenFieldName()
Description copied from interface: Configuration
Returns the name of the token field.

Specified by:
getTokenFieldName in interface Configuration
Returns:
the token field name.
See Also:
Configuration.getTokenFieldName()

getPackageContext

public String getPackageContext()
Description copied from interface: Configuration
Returns the package context.

Specified by:
getPackageContext in interface Configuration
Returns:
the package context.
See Also:
Configuration.getPackageContext()

getDispatchPattern

public String getDispatchPattern()
Description copied from interface: ViewServletConfiguration

This is a URL pattern that the view servlet includes in the request dispatcher to do the actual display. It replaces the "*" character with the page name. This dispatch pattern is what gets included into the servlet output.

Specified by:
getDispatchPattern in interface ViewServletConfiguration
Returns:
the pattern.
See Also:
ViewServletConfiguration.getDispatchPattern()

getRedirectPageTimeout

public int getRedirectPageTimeout()
Description copied from interface: RedirectConfiguration
This is the amount of time in seconds that the redirect page would wait before reloading itself.

Specified by:
getRedirectPageTimeout in interface RedirectConfiguration
Returns:
seconds.
See Also:
RedirectConfiguration.getRedirectPageTimeout()

getRedirectPage

public String getRedirectPage()
Description copied from interface: RedirectConfiguration
This is the page that would be displayed during the redirect within the servlet context.

Specified by:
getRedirectPage in interface RedirectConfiguration
Returns:
page URL.
See Also:
RedirectConfiguration.getRedirectPage()

isRedirectPageDefined

public boolean isRedirectPageDefined()
Description copied from interface: RedirectConfiguration
This returns true if the redirect page was defined.

Specified by:
isRedirectPageDefined in interface RedirectConfiguration
Returns:
true if the redirect page was defined.
See Also:
RedirectConfiguration.isRedirectPageDefined()


Copyright © 2004-2005 trajano.net. All Rights Reserved.