Weaver 3.1.0a1-D1

com.oldlight.weaver.context
Interface WeaverServletContext

All Known Implementing Classes:
WeaverServletContextImpl

public interface WeaverServletContext

The WeaverServletContext interface manages a servlet.

Author:
Paul Harvey

Method Summary
 String getApplicationDate()
          Gets the application date as set in the WAD file.
 String getApplicationName()
          Gets the application name as set in the WAD file.
 String getApplicationVersion()
          Gets the application version as set in the WAD file.
 Object getAttribute(String name)
          Gets the value of a named servlet scoped attribute.
 String getAuthorEmail()
          Gets the author email address as set in the WAD file.
 String getAuthorName()
          Gets the author name as set in the WAD file.
 String getConfigValue(String name)
          Gets configuration value loaded from the per-servlet configuration file.
 Set getConfigValueNames()
          Gets all configuration value names.
 long getCreationTime()
          Gets the time that the application was created.
 String getInitParameter(String name)
          Gets a servlet init parameter.
 String getServletName()
          Gets the name of the servlet running this application.
 String getVendorName()
          Gets the vendor name as set in the WAD file.
 void removeAttribute(String name)
          Removes a session scoped attribute.
 void setAttribute(String name, Object value)
          Sets a servlet scoped attribute.
 

Method Detail

getCreationTime

public long getCreationTime()
Gets the time that the application was created.

Returns:
The requested time.

getServletName

public String getServletName()
Gets the name of the servlet running this application.

Returns:
The servlet name.

getApplicationName

public String getApplicationName()
Gets the application name as set in the WAD file.

Returns:
The application name.

getApplicationVersion

public String getApplicationVersion()
Gets the application version as set in the WAD file.

Returns:
The application version.

getApplicationDate

public String getApplicationDate()
Gets the application date as set in the WAD file.

Returns:
The application date.

getAuthorEmail

public String getAuthorEmail()
Gets the author email address as set in the WAD file.

Returns:
The author EMail address.

getAuthorName

public String getAuthorName()
Gets the author name as set in the WAD file.

Returns:
The author name.

getVendorName

public String getVendorName()
Gets the vendor name as set in the WAD file.

Returns:
The vendor name.

getInitParameter

public String getInitParameter(String name)
Gets a servlet init parameter.

Parameters:
name - Name of the parameter
Returns:
The requested parameter, or null if it cannot be found.

getConfigValue

public String getConfigValue(String name)
Gets configuration value loaded from the per-servlet configuration file.

Parameters:
name - Name of config value to retrieve
Returns:
The requested configuration value, or null if it can't be found.

getConfigValueNames

public Set getConfigValueNames()
Gets all configuration value names.

Returns:
Set of configuration value names.

setAttribute

public void setAttribute(String name,
                         Object value)
Sets a servlet scoped attribute.

Parameters:
name - The name of the attribute to set.
value - The value to set the attribute to.

getAttribute

public Object getAttribute(String name)
Gets the value of a named servlet scoped attribute.

Parameters:
name - The name of the attribute to retrieve.
Returns:
The value of the named attribute, or null if not found.

removeAttribute

public void removeAttribute(String name)
Removes a session scoped attribute.

Parameters:
name - The name of the attribute to remove.

Copyright ©Paul Harvey