Package org.jboss.arquillian.extension.rest.warp.api

Examples of org.jboss.arquillian.extension.rest.warp.api.RestContext


    public Object lookup(ArquillianResource arquillianResource, Annotation... annotations) {

        // retrieves the http request
        HttpServletRequest request = requestInstance.get();
        // retrieves the rest context as a attribute from request
        RestContext restContext = (RestContext) request.getAttribute(WarpRestCommons.WARP_REST_ATTRIBUTE);

        if(restContext == null) {

            throw new RestContextNotFoundException("The instance of RestContext can not be lookup."
                    + " Please check whether you had correctly configured interceptors");
View Full Code Here

TOP

Related Classes of org.jboss.arquillian.extension.rest.warp.api.RestContext

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.