Class ServletConfigWrapper
- java.lang.Object
-
- com.tangosol.util.Base
-
- com.tangosol.coherence.servlet.api23.ServletConfigWrapper
-
- All Implemented Interfaces:
javax.servlet.ServletConfig
public class ServletConfigWrapper extends Base implements javax.servlet.ServletConfig
An implementation of the ServletConfig interface that provides for a clustered ServletContext.- Version:
- Coherence 3.4.1
- Author:
- jh 2008.10.14
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.tangosol.util.Base
Base.LoggingWriter
-
-
Constructor Summary
Constructors Constructor Description ServletConfigWrapper(SessionHelper helper, javax.servlet.ServletConfig cfg)Construct a Coherence ServletConfig that wraps the app server's ServletConfig object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected StringgetDescription()Returns a string representation of this object's attributes.StringgetInitParameter(String sName)Returns a String containing the value of the named initialization parameter, or null if the parameter does not exist.EnumerationgetInitParameterNames()Returns the names of the servlet's initialization parameters as an Enumeration of String objects, or an empty Enumeration if the servlet has no initialization parameters.protected javax.servlet.ServletConfiggetServletConfig()Get the wrapped ServletConfig.javax.servlet.ServletContextgetServletContext()Returns a reference to the ServletContext in which the caller is executing.StringgetServletName()Returns the name of this servlet instance.protected SessionHelpergetSessionHelper()Get the SessionHelper for this ServletConfig wrapper.StringtoString()Returns a string representation of the object.-
Methods inherited from class com.tangosol.util.Base
azzert, azzert, azzert, azzertFailed, breakLines, breakLines, capitalize, checkNotEmpty, checkNotNull, checkRange, computeSafeWaitTime, decimalValue, dup, dup, ensureBigDecimal, ensureClassLoader, ensureRuntimeException, ensureRuntimeException, equals, equalsDeep, err, err, err, err, err, escape, formatDateTime, getCallerStackFrame, getCommonMonitor, getCommonMonitor, getCommonMonitor, getContextClassLoader, getContextClassLoader, getDeepMessage, getErr, getLastSafeTimeMillis, getLog, getMaxDecDigits, getMaxHexDigits, getOriginalException, getOut, getProcessRandom, getRandom, getRandomBinary, getRandomBinary, getRandomString, getSafeTimeMillis, getStackFrame, getStackFrames, getStackTrace, getStackTrace, getStackTrace, getThreadFactory, getTimeZone, getUpTimeMillis, hashCode, hexValue, indentString, indentString, isDecimal, isHex, isLogEcho, isOctal, log, log, log, log, log, makeInteger, makeLong, makeThread, mergeArray, mergeBooleanArray, mergeByteArray, mergeCharArray, mergeDoubleArray, mergeFloatArray, mergeIntArray, mergeLongArray, mod, mod, octalValue, out, out, out, out, out, pad, parseBandwidth, parseBandwidth, parseDelimitedString, parseHex, parseHex, parseMemorySize, parseMemorySize, parsePercentage, parseTime, parseTime, parseTimeNanos, parseTimeNanos, printStackTrace, randomize, randomize, randomize, randomize, read, read, read, read, read, read, read, replace, setErr, setLog, setLogEcho, setOut, sleep, toBandwidthString, toBandwidthString, toCharEscape, toCrc, toCrc, toCrc, toCrc, toCrc, toDecString, toDelimitedString, toDelimitedString, toDelimitedString, toDelimitedString, toHex, toHex, toHexDump, toHexEscape, toHexEscape, toHexEscape, toHexEscape, toHexString, toMemorySizeString, toMemorySizeString, toQuotedCharEscape, toQuotedStringEscape, toSqlString, toString, toString, toStringEscape, toUnicodeEscape, trace, trace, trace, trace, trace, trace, trace, trace, trace, truncateString, truncateString, wait
-
-
-
-
Constructor Detail
-
ServletConfigWrapper
public ServletConfigWrapper(SessionHelper helper, javax.servlet.ServletConfig cfg)
Construct a Coherence ServletConfig that wraps the app server's ServletConfig object.- Parameters:
helper- the application's session helpercfg- the appliation server's ServletConfig object
-
-
Method Detail
-
getServletName
public String getServletName()
Returns the name of this servlet instance. The name may be provided via server administration, assigned in the web application deployment descriptor, or for an unregistered (and thus unnamed) servlet instance it will be the servlet's class name.- Specified by:
getServletNamein interfacejavax.servlet.ServletConfig- Returns:
- the name of the servlet instance
-
getServletContext
public javax.servlet.ServletContext getServletContext()
Returns a reference to the ServletContext in which the caller is executing.- Specified by:
getServletContextin interfacejavax.servlet.ServletConfig- Returns:
- a ServletContext object, used by the caller to interact with its servlet container
-
getInitParameter
public String getInitParameter(String sName)
Returns a String containing the value of the named initialization parameter, or null if the parameter does not exist.- Specified by:
getInitParameterin interfacejavax.servlet.ServletConfig- Parameters:
sName- a String specifying the name of the initialization parameter- Returns:
- a String containing the value of the initialization parameter
-
getInitParameterNames
public Enumeration getInitParameterNames()
Returns the names of the servlet's initialization parameters as an Enumeration of String objects, or an empty Enumeration if the servlet has no initialization parameters.- Specified by:
getInitParameterNamesin interfacejavax.servlet.ServletConfig- Returns:
- an Enumeration of String objects containing the names of the servlet's initialization parameters
-
toString
public String toString()
Returns a string representation of the object.
-
getDescription
protected String getDescription()
Returns a string representation of this object's attributes.- Returns:
- a string representation of this object's attributes
-
getSessionHelper
protected SessionHelper getSessionHelper()
Get the SessionHelper for this ServletConfig wrapper.- Returns:
- the SessionHelper for this ServletConfig wrapper
-
getServletConfig
protected javax.servlet.ServletConfig getServletConfig()
Get the wrapped ServletConfig.- Returns:
- the wrapped ServletConfig
-
-