|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jasig.cas.client.util.AbstractConfigurationFilter
org.jasig.cas.client.util.AbstractCasFilter
public abstract class AbstractCasFilter
Abstract filter that contains code that is common to all CAS filters.
The following filter options can be configured (either at the context-level or filter-level).
serverName - the name of the CAS client server, in the format: localhost:8080 or localhost:8443 or localhost or https://localhost:8443service - the completely qualified service url, i.e. https://localhost/cas-client/appPlease note that one of the two above parameters must be set.
| Field Summary | |
|---|---|
static String |
CONST_CAS_ASSERTION
Represents the constant for where the assertion will be located in memory. |
| Fields inherited from class org.jasig.cas.client.util.AbstractConfigurationFilter |
|---|
logger |
| Constructor Summary | |
|---|---|
protected |
AbstractCasFilter(Protocol protocol)
|
| Method Summary | |
|---|---|
protected String |
constructServiceUrl(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
|
void |
destroy()
|
protected Protocol |
getProtocol()
|
void |
init()
Initialization method. |
void |
init(javax.servlet.FilterConfig filterConfig)
|
protected void |
initInternal(javax.servlet.FilterConfig filterConfig)
Controls the ordering of filter initialization and checking by defining a method that runs before the init. |
protected String |
retrieveTicketFromRequest(javax.servlet.http.HttpServletRequest request)
Template method to allow you to change how you retrieve the ticket. |
void |
setEncodeServiceUrl(boolean encodeServiceUrl)
|
void |
setServerName(String serverName)
Note that trailing slashes should not be used in the serverName. |
void |
setService(String service)
|
| Methods inherited from class org.jasig.cas.client.util.AbstractConfigurationFilter |
|---|
getBoolean, getClass, getInt, getLong, getString, isIgnoreInitConfiguration, setIgnoreInitConfiguration |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface javax.servlet.Filter |
|---|
doFilter |
| Field Detail |
|---|
public static final String CONST_CAS_ASSERTION
| Constructor Detail |
|---|
protected AbstractCasFilter(Protocol protocol)
| Method Detail |
|---|
public final void init(javax.servlet.FilterConfig filterConfig)
throws javax.servlet.ServletException
init in interface javax.servlet.Filterinit in class AbstractConfigurationFilterjavax.servlet.ServletException
protected void initInternal(javax.servlet.FilterConfig filterConfig)
throws javax.servlet.ServletException
filterConfig - the original filter configuration.
javax.servlet.ServletException - if there is a problem.public void init()
public void destroy()
protected final String constructServiceUrl(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
public final void setServerName(String serverName)
serverName - the serverName. If this method is called, this should not be null. This AND service should not be both configured.public final void setService(String service)
public final void setEncodeServiceUrl(boolean encodeServiceUrl)
protected Protocol getProtocol()
protected String retrieveTicketFromRequest(javax.servlet.http.HttpServletRequest request)
request - the HTTP ServletRequest. CANNOT be NULL.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||