|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.springframework.web.servlet.handler.HandlerInterceptorAdapter
com.veriplace.web.spring.VeriplaceInterceptor
com.veriplace.web.spring.UserDiscoveryInterceptor
public class UserDiscoveryInterceptor
An Interceptor that does not allow requests to proceed until the current Veriplace user has been identified.
| Field Summary |
|---|
| Fields inherited from class com.veriplace.web.spring.VeriplaceInterceptor |
|---|
veriplace |
| Constructor Summary | |
|---|---|
UserDiscoveryInterceptor()
|
|
| Method Summary | |
|---|---|
java.lang.String |
getUserAttributeName()
See setUserAttributeName(String). |
protected boolean |
handleInternal(VeriplaceState state,
HttpServletRequest request,
HttpServletResponse response)
Override this method to do any necessary preprocessing of the request based on the corresponding VeriplaceState. |
boolean |
isInteractionAllowed()
See setInteractionAllowed(boolean). |
void |
setInteractionAllowed(boolean interactionAllowed)
Specifies whether Veriplace can redirect to a login page or otherwise interact with the user when we need to determine the current user. |
void |
setUserAttributeName(java.lang.String userAttributeName)
Specifies that when user discovery has been successfully completed on a request, the User object should be stored in the request as an attribute
with this name. |
| Methods inherited from class com.veriplace.web.spring.VeriplaceInterceptor |
|---|
getVeriplace, getVeriplaceClient, postHandle, preHandle, resolveException, setVeriplace |
| Methods inherited from class org.springframework.web.servlet.handler.HandlerInterceptorAdapter |
|---|
afterCompletion |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public UserDiscoveryInterceptor()
| Method Detail |
|---|
public java.lang.String getUserAttributeName()
setUserAttributeName(String).
public void setUserAttributeName(java.lang.String userAttributeName)
User object should be stored in the request as an attribute
with this name.
public boolean isInteractionAllowed()
setInteractionAllowed(boolean).
public void setInteractionAllowed(boolean interactionAllowed)
protected boolean handleInternal(VeriplaceState state,
HttpServletRequest request,
HttpServletResponse response)
throws java.lang.Exception
VeriplaceInterceptorVeriplaceState.
handleInternal in class VeriplaceInterceptorjava.lang.Exception
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||