HATS 7.5.1 Web API Reference

Publicly accessible methods not documented here are for IBM internal use only and may change in a future release of the product.

com.ibm.hats.web.runtime
Class WebConfig

java.lang.Object
  extended by com.ibm.hats.web.runtime.WebConfig
All Implemented Interfaces:
IConfig

public class WebConfig
extends Object
implements IConfig

Class Name: WevConfig
Class Type:
Normal
Base Class:
None
Intf Class:
IConfig
Description:
Provides a wrapper for the ServletConfig class.


Field Summary
 
Fields inherited from interface com.ibm.hats.runtime.IConfig
Copyright
 
Constructor Summary
WebConfig(javax.servlet.ServletConfig theServletConfig)
          The parameter constructor which wraps a ServletConfig object.
 
Method Summary
 boolean equals(Object webConfig)
          Compares the specified WebConfig object with this object.
 IContext getContext()
          Return the context.
 String getInitParameter(String name)
          Return the initialization parameters for the specified name.
 Enumeration getInitParameterNames()
          Retrieve an enumeration of all the initialization parameter names.
 String getName()
          Return the name.
 javax.servlet.ServletConfig getServletConfig()
          Retrieve the servlet configuration.
 int hashCode()
          Calculates the hash code.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WebConfig

public WebConfig(javax.servlet.ServletConfig theServletConfig)
The parameter constructor which wraps a ServletConfig object.

Parameters:
theServletConfig - The ServletConfig object to be wrapped. Constructor which builds a WebConfig from a ServletConfig.
Method Detail

equals

public boolean equals(Object webConfig)
Compares the specified WebConfig object with this object.

Overrides:
equals in class Object
Parameters:
webConfig - The object to be compared.
Returns:
True if the objects are equal, false otherwise.
See Also:
Object.equals(java.lang.Object)

getContext

public IContext getContext()
Return the context.

Specified by:
getContext in interface IConfig
Returns:
Returns the context.

getInitParameter

public String getInitParameter(String name)
Return the initialization parameters for the specified name.

Specified by:
getInitParameter in interface IConfig
Parameters:
name - The name. This value cannot be null.
Returns:
The initialization parameters for the specified name.

getInitParameterNames

public Enumeration getInitParameterNames()
Retrieve an enumeration of all the initialization parameter names.

Specified by:
getInitParameterNames in interface IConfig
Returns:
AN enumeration of all of the initialization parameter names.

getName

public String getName()
Return the name.

Specified by:
getName in interface IConfig
Returns:
Returns the name.

getServletConfig

public javax.servlet.ServletConfig getServletConfig()
Retrieve the servlet configuration.

Returns:
Returns the config.

hashCode

public int hashCode()
Calculates the hash code. This method overrides the hashCode method in Object.

Overrides:
hashCode in class Object
Returns:
The hashCode.
See Also:
Object.hashCode()

HATS 7.5.1 (201005110649)