Class ServletContextSupport
java.lang.Object
org.apache.shiro.web.servlet.ServletContextSupport
- Direct Known Subclasses:
AbstractFilter
Base implementation for any components that need to access the web application's
ServletContext.- Since:
- 0.2
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Objectprotected StringgetContextInitParam(String paramName) javax.servlet.ServletContextprotected voidprotected voidsetContextAttribute(String key, Object value) voidsetServletContext(javax.servlet.ServletContext servletContext) toString()It is highly recommended not to override this method directly, and instead override thetoStringBuilder()method, a better-performing alternative.protected StringBuilderSame concept astoString(), but returns aStringBuilderinstance instead.
-
Constructor Details
-
ServletContextSupport
public ServletContextSupport()
-
-
Method Details
-
getServletContext
-
setServletContext
-
getContextInitParam
-
setContextAttribute
-
getContextAttribute
-
removeContextAttribute
-
toString
It is highly recommended not to override this method directly, and instead override thetoStringBuilder()method, a better-performing alternative. -
toStringBuilder
Same concept astoString(), but returns aStringBuilderinstance instead.- Returns:
- a StringBuilder instance to use for appending String data that will eventually be returned from a
toString()invocation.
-