net.bryansaunders.jee6divelog.security.interceptor
Class RestSecurityInterceptor

java.lang.Object
  extended by net.bryansaunders.jee6divelog.security.interceptor.RestSecurityInterceptor
All Implemented Interfaces:
org.jboss.resteasy.spi.interception.PreProcessInterceptor

public class RestSecurityInterceptor
extends java.lang.Object
implements org.jboss.resteasy.spi.interception.PreProcessInterceptor

Security Intercepter for REST API Calls.

Author:
Bryan Saunders

Constructor Summary
RestSecurityInterceptor()
           
 
Method Summary
 org.jboss.resteasy.core.ServerResponse preProcess(org.jboss.resteasy.spi.HttpRequest httpRequest, org.jboss.resteasy.core.ResourceMethod resourceMethod)
          Called before any REST service calls are processed.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RestSecurityInterceptor

public RestSecurityInterceptor()
Method Detail

preProcess

public org.jboss.resteasy.core.ServerResponse preProcess(org.jboss.resteasy.spi.HttpRequest httpRequest,
                                                         org.jboss.resteasy.core.ResourceMethod resourceMethod)
                                                  throws org.jboss.resteasy.spi.Failure,
                                                         javax.ws.rs.WebApplicationException
Called before any REST service calls are processed.

Specified by:
preProcess in interface org.jboss.resteasy.spi.interception.PreProcessInterceptor
Parameters:
httpRequest - Initial HTTP Request
resourceMethod - Resource Method being Called
Returns:
Response for the Server, Null if the API call should proceed
Throws:
org.jboss.resteasy.spi.Failure - Thrown on Failure
javax.ws.rs.WebApplicationException - Thrown on Error


Copyright © 2012 Bryan Saunders. All Rights Reserved.