Package org.opensaml.ws.transport.http

Examples of org.opensaml.ws.transport.http.HttpServletRequestAdapter


    }

    protected void populateGenericContext(HttpServletRequest request, HttpServletResponse response, SAMLMessageContext context) throws MetadataProviderException {

        HttpServletRequestAdapter inTransport = new HttpServletRequestAdapter(request);
        HttpServletResponseAdapter outTransport = new HttpServletResponseAdapter(response, request.isSecure());

        // Store attribute which cannot be located from InTransport directly
        request.setAttribute(org.springframework.security.saml.SAMLConstants.LOCAL_CONTEXT_PATH, request.getContextPath());
View Full Code Here


        super(decoder, encoder);
    }

    public boolean supports(InTransport transport) {
        if (transport instanceof HttpServletRequestAdapter) {
            HttpServletRequestAdapter t = (HttpServletRequestAdapter) transport;
            HttpServletRequest request = t.getWrappedRequest();
            return "POST".equalsIgnoreCase(t.getHTTPMethod()) && request.getContentType() != null && request.getContentType().startsWith("text/xml");
        } else {
            return false;
        }
    }
View Full Code Here

TOP

Related Classes of org.opensaml.ws.transport.http.HttpServletRequestAdapter

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.