|
|||||||||
| 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.LocationDiscoveryInterceptor
public class LocationDiscoveryInterceptor
An Interceptor that does not allow requests to proceed until the current user's location is available from Veriplace.
| Field Summary |
|---|
| Fields inherited from class com.veriplace.web.spring.VeriplaceInterceptor |
|---|
veriplace |
| Constructor Summary | |
|---|---|
LocationDiscoveryInterceptor()
|
|
| Method Summary | |
|---|---|
java.lang.String |
getLocationAttributeName()
See setLocationAttributeName(String). |
java.lang.String |
getLocationMode()
See setLocationMode(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. |
void |
setLocationAttributeName(java.lang.String locationAttributeName)
Specifies that when location discovery has been successfully completed on a request, the Location object should be stored in the request as an attribute
with this name. |
void |
setLocationMode(java.lang.String locationMode)
Specifies the method or degree of accuracy for obtaining location. |
| 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 LocationDiscoveryInterceptor()
| Method Detail |
|---|
public java.lang.String getLocationAttributeName()
setLocationAttributeName(String).
public void setLocationAttributeName(java.lang.String locationAttributeName)
Location object should be stored in the request as an attribute
with this name.
public java.lang.String getLocationMode()
setLocationMode(String).
public void setLocationMode(java.lang.String locationMode)
LocationMode.
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 | ||||||||