Examples of startsWithIgnoreCase()


Examples of org.apache.tomcat.util.buf.ByteChunk.startsWithIgnoreCase()

        String username = null;
        String password = null;

        authorization.toBytes();
        ByteChunk authorizationBC = authorization.getByteChunk();
        if (authorizationBC.startsWithIgnoreCase("basic ", 0)) { // Basic authorization
            authorizationBC.setOffset(authorizationBC.getOffset() + 6);
            // FIXME: Add trimming
            // authorizationBC.trim();

            CharChunk authorizationCC = authorization.getCharChunk();
View Full Code Here

Examples of org.apache.tomcat.util.buf.ByteChunk.startsWithIgnoreCase()

                username = new String(buf, 0, colon);
                password = new String(buf, colon + 1, authorizationCC.getEnd() - colon - 1);
            }

            authorizationBC.setOffset(authorizationBC.getOffset() - 6);
        } else if (authorizationBC.startsWithIgnoreCase("negotiate ", 0)) { // Spnego authorization
            authorizationBC.setOffset(authorizationBC.getOffset() + 10);
            username = authorizationBC.toString();
            authorizationBC.setOffset(authorizationBC.getOffset() - 10);
        }
View Full Code Here

Examples of org.apache.tomcat.util.buf.ByteChunk.startsWithIgnoreCase()

            .getValue("authorization");

        if (authorization != null) {
            authorization.toBytes();
            ByteChunk authorizationBC = authorization.getByteChunk();
            if (authorizationBC.startsWithIgnoreCase("basic ", 0)) {
                authorizationBC.setOffset(authorizationBC.getOffset() + 6);
                // FIXME: Add trimming
                // authorizationBC.trim();

                CharChunk authorizationCC = authorization.getCharChunk();
View Full Code Here

Examples of org.apache.tomcat.util.buf.ByteChunk.startsWithIgnoreCase()

            }
        }

        // Check for a full URI (including protocol://host:port/)
        ByteChunk uriBC = request.requestURI().getByteChunk();
        if (uriBC.startsWithIgnoreCase("http", 0)) {

            int pos = uriBC.indexOf("://", 0, 3, 4);
            int uriBCStart = uriBC.getStart();
            int slashPos = -1;
            if (pos != -1) {
View Full Code Here

Examples of org.apache.tomcat.util.buf.ByteChunk.startsWithIgnoreCase()

            }
        }

        // Check for a full URI (including protocol://host:port/)
        ByteChunk uriBC = request.requestURI().getByteChunk();
        if (uriBC.startsWithIgnoreCase("http", 0)) {

            int pos = uriBC.indexOf("://", 0, 3, 4);
            int uriBCStart = uriBC.getStart();
            int slashPos = -1;
            if (pos != -1) {
View Full Code Here

Examples of org.apache.tomcat.util.buf.MessageBytes.startsWithIgnoreCase()

    public void invoke(Request request, Response response) throws IOException, ServletException {
        // Disallow any direct access to resources under OSGI-INF or OSGI-OPT
        if (request != null) {
            MessageBytes requestPathMB = request.getRequestPathMB();
            if ((requestPathMB.startsWithIgnoreCase("/OSGI-INF/", 0))
                    || (requestPathMB.equalsIgnoreCase("/OSGI-INF"))
                    || (requestPathMB.startsWithIgnoreCase("/OSGI-OPT/", 0))
                    || (requestPathMB.equalsIgnoreCase("/OSGI-OPT"))) {
                notFound(response);
                return;
View Full Code Here

Examples of org.apache.tomcat.util.buf.MessageBytes.startsWithIgnoreCase()

        // Disallow any direct access to resources under OSGI-INF or OSGI-OPT
        if (request != null) {
            MessageBytes requestPathMB = request.getRequestPathMB();
            if ((requestPathMB.startsWithIgnoreCase("/OSGI-INF/", 0))
                    || (requestPathMB.equalsIgnoreCase("/OSGI-INF"))
                    || (requestPathMB.startsWithIgnoreCase("/OSGI-OPT/", 0))
                    || (requestPathMB.equalsIgnoreCase("/OSGI-OPT"))) {
                notFound(response);
                return;
            }
        }
View Full Code Here

Examples of org.glassfish.grizzly.http.util.DataChunk.startsWithIgnoreCase()

        HttpRequest hreq = (HttpRequest) request;
        // START CR 6415120
        if (request.getCheckRestrictedResources()) {
        // END CR 6415120
            DataChunk requestPathDC = hreq.getRequestPathMB();
            if ((requestPathDC.startsWithIgnoreCase("/META-INF/", 0))
                    || (requestPathDC.equalsIgnoreCase("/META-INF"))
                    || (requestPathDC.startsWithIgnoreCase("/WEB-INF/", 0))
                    || (requestPathDC.equalsIgnoreCase("/WEB-INF"))) {
                notFound((HttpServletResponse) response.getResponse());
                return null;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.