public class DefaultFactory extends Base implements SessionHelperFactory
Base.LoggingWriter, Base.StackFrame
Constructor and Description |
---|
DefaultFactory()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
protected String |
getDescription()
Returns a string representation of this object's attributes.
|
protected javax.servlet.ServletContext |
getServletContext()
Get the original application server's ServletContext.
|
protected SessionHelper |
getSessionHelper()
Get the SessionHelper created by and used by the factory.
|
javax.servlet.FilterConfig |
instantiateFilterConfig(javax.servlet.FilterConfig cfg)
Given an application server's FilterConfig object, create a wrapper.
|
javax.servlet.http.HttpServletRequest |
instantiateHttpServletRequest(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res, String sSessionId, boolean fCookie, boolean fUrl)
Create an HttpServletRequest wrapper.
|
javax.servlet.http.HttpServletResponse |
instantiateHttpServletResponse(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res)
Create an HttpServletResponse wrapper.
|
javax.servlet.http.HttpSession |
instantiateHttpSession(HttpSessionCollection collection)
Create a new HttpSession object.
|
javax.servlet.http.HttpSession |
instantiateHttpSession(HttpSessionCollection collection, String sId)
Create an HttpSession object for an existing session ID.
|
javax.servlet.http.HttpSessionContext |
instantiateHttpSessionContext()
Create an HttpSessionContext implementation.
|
javax.servlet.ServletConfig |
instantiateServletConfig(javax.servlet.ServletConfig cfg)
Given an application server's ServletConfig object, create a wrapper.
|
javax.servlet.ServletContext |
instantiateServletContext()
Create a ServletContext wrapper implementation.
|
SessionHelper |
instantiateSessionHelper(javax.servlet.ServletContext ctx)
Given an application server's ServletContext object, initialize the factory and create the SessionHelper object.
|
protected void |
setServletContext(javax.servlet.ServletContext ctx)
Set the original application server's ServletContext.
|
protected void |
setSessionHelper(SessionHelper helper)
Set the SessionHelper that is to be used by the factory.
|
String |
toString()
Returns a string representation of the object.
|
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, getRandom, getRandomBinary, getRandomBinary, getRandomString, getSafeTimeMillis, getStackFrame, getStackFrames, getStackTrace, getStackTrace, getThreadFactory, getTimeZone, getUpTimeMillis, hashCode, hexValue, indentString, indentString, isDecimal, isHex, isLogEcho, isOctal, log, log, log, log, log, makeInteger, makeLong, makeThread, octalValue, out, out, out, out, out, pad, parseBandwidth, parseBandwidth, parseDelimitedString, parseHex, parseHex, parseMemorySize, parseMemorySize, parsePercentage, parseTime, parseTime, parseTimeNanos, parseTimeNanos, printStackTrace, 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
public SessionHelper instantiateSessionHelper(javax.servlet.ServletContext ctx)
instantiateSessionHelper
in interface SessionHelperFactory
ctx
- an application server ServletContext objectpublic javax.servlet.ServletContext instantiateServletContext()
instantiateServletContext
in interface SessionHelperFactory
public javax.servlet.http.HttpSessionContext instantiateHttpSessionContext()
instantiateHttpSessionContext
in interface SessionHelperFactory
public javax.servlet.FilterConfig instantiateFilterConfig(javax.servlet.FilterConfig cfg)
instantiateFilterConfig
in interface SessionHelperFactory
cfg
- an application server FilterConfig objectpublic javax.servlet.ServletConfig instantiateServletConfig(javax.servlet.ServletConfig cfg)
instantiateServletConfig
in interface SessionHelperFactory
cfg
- an application server ServletConfig objectpublic javax.servlet.http.HttpServletRequest instantiateHttpServletRequest(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res, String sSessionId, boolean fCookie, boolean fUrl)
instantiateHttpServletRequest
in interface SessionHelperFactory
req
- the app server's request objectres
- the app server's response objectsSessionId
- the session ID (if any) that came with the requestfCookie
- if the session ID came from a cookiefUrl
- if the session ID came from the urlpublic javax.servlet.http.HttpServletResponse instantiateHttpServletResponse(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res)
instantiateHttpServletResponse
in interface SessionHelperFactory
req
- the wrapped request objectres
- the app server's response objectpublic javax.servlet.http.HttpSession instantiateHttpSession(HttpSessionCollection collection)
instantiateHttpSession
in interface SessionHelperFactory
collection
- the HttpSessionCollection that manages the session modelspublic javax.servlet.http.HttpSession instantiateHttpSession(HttpSessionCollection collection, String sId)
instantiateHttpSession
in interface SessionHelperFactory
collection
- the HttpSessionCollection that manages the session modelssId
- the session IDpublic String toString()
protected String getDescription()
protected SessionHelper getSessionHelper()
protected void setSessionHelper(SessionHelper helper)
helper
- the SessionHelper for this factoryprotected javax.servlet.ServletContext getServletContext()
protected void setServletContext(javax.servlet.ServletContext ctx)
ctx
- the wrapped ServletContext