Package ariba.util.core

Examples of ariba.util.core.StringArray.inUse()


            servletUrlPrefix = servletUrlPrefix.substring(servletUrlPrefix.indexOf("/", firstSecondSlash + 2) + 1);
        }
        if ("".equals(servletUrlPrefix)) return 0;
        StringArray pathComponents = AWUtil.componentsSeparatedByString(servletUrlPrefix, "/");
        // subtract one here to account for preceeding slash.
        int servletUrlPrefixComponentCount = pathComponents.inUse();
        if (servletUrlPrefix.startsWith("/")) {
            servletUrlPrefixComponentCount--;
        }
        if (servletUrlPrefix.endsWith("/")) {
            servletUrlPrefixComponentCount--;
View Full Code Here


        if (requestHandlerPath != null) {
            int requestHandlerPathLength = requestHandlerPath.length();
            if (requestHandlerPathLength > 0) {
                StringArray pathComponents = AWUtil.componentsSeparatedByString(requestHandlerPath, "/");
                // Note: first entry is always empty string since requestHandlerPath starts with "/".
                int pathComponentCount = pathComponents.inUse();
                int servletUrlPrefixComponentCount = ((AWServletApplication)AWConcreteApplication.SharedInstance).servletUrlPrefixComponentCount();
                int currentFieldIndex = servletUrlPrefixComponentCount + 1;
                if (requestHandlerPath.startsWith("/")) {
                    currentFieldIndex ++;
                }
View Full Code Here

            InputStream inputStream = resource.inputStream();
            String standardTagNamesString = AWUtil.stringWithContentsOfInputStream(inputStream);
            AWUtil.close(inputStream);
            StringArray standardTagNames = AWUtil.componentsSeparatedByString(standardTagNamesString, ",");
            String[] standardTagNamesArray = standardTagNames.array();
            for (int index = (standardTagNames.inUse() - 1); index >= 0; index--) {
                String currentTagName = standardTagNamesArray[index];
                currentTagName = currentTagName.trim();
                registerStandardTagName(currentTagName);
            }
        }
View Full Code Here

    protected static Map parseCookieHeader (String cookieHeaderString)
    {
        Map cookieValues = MapUtil.map();
        StringArray pairs = AWUtil.componentsSeparatedByString(cookieHeaderString, ";");
        String[] pairsArray = pairs.array();
        for (int pairIndex = (pairs.inUse() - 1); pairIndex > -1; pairIndex--) {
            String pair = pairsArray[pairIndex];
            pair = pair.trim();
            StringArray keyAndValue = AWUtil.componentsSeparatedByString(pair, "=");
            if (keyAndValue.inUse() != 2) {
                continue;
View Full Code Here

        String[] pairsArray = pairs.array();
        for (int pairIndex = (pairs.inUse() - 1); pairIndex > -1; pairIndex--) {
            String pair = pairsArray[pairIndex];
            pair = pair.trim();
            StringArray keyAndValue = AWUtil.componentsSeparatedByString(pair, "=");
            if (keyAndValue.inUse() != 2) {
                continue;
            }
            String[] keyAndValueArray = keyAndValue.array();
            String key = keyAndValueArray[0];
            String value = keyAndValueArray[1];
View Full Code Here

            InputStream inputStream = resource.inputStream();
            String standardTagNamesString = AWUtil.stringWithContentsOfInputStream(inputStream);
            AWUtil.close(inputStream);
            StringArray standardTagNames = AWUtil.componentsSeparatedByString(standardTagNamesString, ",");
            String[] standardTagNamesArray = standardTagNames.array();
            for (int index = (standardTagNames.inUse() - 1); index >= 0; index--) {
                String currentTagName = standardTagNamesArray[index];
                currentTagName = currentTagName.trim();
                registerStandardTagName(currentTagName);
            }
        }
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.