Package org.mortbay.jetty.servlet

Examples of org.mortbay.jetty.servlet.ServletHttpRequest


        this.handler = handler;
    }
   
    public void before(Object[] context, HttpRequest httpRequest, HttpResponse httpResponse) {
        if (httpRequest != null) {
            ServletHttpRequest request = (ServletHttpRequest) httpRequest.getWrapper();
            if (request == null)
            {
                // Build the request and response.
                request = new ServletHttpRequest(handler, null, httpRequest);
                ServletHttpResponse response = new ServletHttpResponse(request, httpResponse);
                httpRequest.setWrapper(request);
                httpResponse.setWrapper(response);
            }
        }
View Full Code Here


                HttpResponse response, HandleInterceptor end) {
            super(pathInContext, pathParams, request, response, end);
        }

        public void invoke() throws ClusteredInvocationException {
            ServletHttpRequest servletHttpRequest = (ServletHttpRequest) request.getWrapper();
            ServletHttpResponse servletHttpResponse = (ServletHttpResponse) response.getWrapper();

            WebInvocation invocation = new WebInvocation();
            FilterChain chainAdapter = new FilterChain() {
                public void doFilter(ServletRequest request, ServletResponse response) throws IOException, ServletException {
View Full Code Here

        this.handler = handler;
    }
   
    public void before(Object[] context, HttpRequest httpRequest, HttpResponse httpResponse) {
        if (httpRequest != null) {
            ServletHttpRequest request = (ServletHttpRequest) httpRequest.getWrapper();
            if (request == null)
            {
                // Build the request and response.
                request = new GeronimoServletHttpRequest(handler, null, httpRequest);
                ServletHttpResponse response = new ServletHttpResponse(request, httpResponse);
View Full Code Here

        PolicyContext.setContextID(policyContextID);
        setCurrentSecurityInterceptor(this);

        if (httpRequest != null) {
            ServletHttpRequest request = (ServletHttpRequest) httpRequest.getWrapper();
            PolicyContext.setHandlerData(request);
        }

        if (next != null) {
            next.before(context, httpRequest, httpResponse);
View Full Code Here

                return true;
            }
        }

        try {
            ServletHttpRequest servletHttpRequest = (ServletHttpRequest) request.getWrapper();
            WebUserDataPermission wudp = new WebUserDataPermission(servletHttpRequest);
            WebResourcePermission webResourcePermission = new WebResourcePermission(servletHttpRequest);
            Principal user = obtainUser(pathInContext, request, response, webResourcePermission, wudp);

            if (user == null) {
View Full Code Here

        super.handle(httpRequest, httpResponse);
    }
   
    public void handle(String pathInContext, String pathParams, HttpRequest httpRequest, HttpResponse httpResponse)
            throws HttpException, IOException {
        ServletHttpRequest request = (ServletHttpRequest) httpRequest.getWrapper();
        if (null == request) {
            request = new GeronimoServletHttpRequest(handler, null, httpRequest);
            ServletHttpResponse response = new ServletHttpResponse(request, httpResponse);
            httpRequest.setWrapper(request);
            httpResponse.setWrapper(response);
View Full Code Here

            if (user == SecurityConstraint.__NOBODY) {
                return true;
            }

            AccessControlContext acc = ContextManager.getCurrentContext();
            ServletHttpRequest servletHttpRequest = (ServletHttpRequest) request.getWrapper();

            /**
             * JACC v1.0 secion 4.1.1
             */
            acc.checkPermission(new WebUserDataPermission(servletHttpRequest));
View Full Code Here

        this.handler = handler;
    }
   
    public void before(Object[] context, HttpRequest httpRequest, HttpResponse httpResponse) {
        if (httpRequest != null) {
            ServletHttpRequest request = (ServletHttpRequest) httpRequest.getWrapper();
            if (request == null)
            {
                // Build the request and response.
                request = new ServletHttpRequest(handler, null, httpRequest);
                ServletHttpResponse response = new ServletHttpResponse(request, httpResponse);
                httpRequest.setWrapper(request);
                httpResponse.setWrapper(response);
            }
        }
View Full Code Here

        PolicyContext.setContextID(policyContextID);
        setCurrentSecurityInterceptor(this);

        if (httpRequest != null) {
            ServletHttpRequest request = (ServletHttpRequest) httpRequest.getWrapper();
            PolicyContext.setHandlerData((HttpServletRequest) request);
        }

        if (next != null) {
            next.before(context, httpRequest, httpResponse);
View Full Code Here

            if (user == SecurityConstraint.__NOBODY) {
                return true;
            }

            AccessControlContext acc = ContextManager.getCurrentContext();
            ServletHttpRequest servletHttpRequest = (ServletHttpRequest) request.getWrapper();

            /**
             * JACC v1.0 secion 4.1.1
             */

            String transportType;
            if (request.isConfidential()) {
                transportType = "CONFIDENTIAL";
            } else if (request.isIntegral()) {
                transportType = "INTEGRAL";
            } else {
                transportType = "NONE";
            }
            WebUserDataPermission wudp = new WebUserDataPermission(servletHttpRequest.getServletPath(), new String[]{servletHttpRequest.getMethod()}, transportType);
            acc.checkPermission(wudp);

            /**
             * JACC v1.0 secion 4.1.2
             */
 
View Full Code Here

TOP

Related Classes of org.mortbay.jetty.servlet.ServletHttpRequest

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.