Examples of PathSegmentImpl


Examples of org.apache.clerezza.triaxrs.util.PathSegmentImpl

  public static List<PathSegment> parsePath(String path) {
    String[] segmentsArray = StringUtils.fastSplitTemplate(path, "/", true); //$NON-NLS-1$
    List<PathSegment> pathSegments = new ArrayList<PathSegment>(segmentsArray.length);
    // go over all the segments and add them
    for (String segment : segmentsArray) {
      pathSegments.add(new PathSegmentImpl(segment, null));
    }
    return pathSegments;
  }
View Full Code Here

Examples of org.apache.cxf.jaxrs.impl.PathSegmentImpl

            return null;
        }
       
        if (pType == ParameterType.PATH) {
            if (PathSegment.class.isAssignableFrom(pClass)) {
                return new PathSegmentImpl(value, decoded);  
            } else {
                value = new PathSegmentImpl(value, false).getPath();                
            }
        }
       
        value = decodeValue(value, decoded, pType);
       
View Full Code Here

Examples of org.apache.cxf.jaxrs.impl.PathSegmentImpl

        if (value == null) {
            return null;
        }
       
        if (pType == ParameterType.PATH) {
            PathSegment ps = new PathSegmentImpl(value, false);   
            if (PathSegment.class.isAssignableFrom(pClass)) {
                return ps;  
            } else {
                value = ps.getPath();                
            }
        }
       
        if (pClass.isPrimitive()) {
            try {
View Full Code Here

Examples of org.apache.cxf.jaxrs.impl.PathSegmentImpl

                                                    boolean ignoreLastSlash) {
        String[] segments = thePath.split("/");
        List<PathSegment> theList = new ArrayList<PathSegment>();
        for (String path : segments) {
            if (!StringUtils.isEmpty(path)) {
                theList.add(new PathSegmentImpl(path, decode));
            }
        }
        int len = thePath.length();
        if (len > 0 && thePath.charAt(len - 1) == '/') {
            String value = ignoreLastSlash ? "" : "/";
            theList.add(new PathSegmentImpl(value, false));
        }
        return theList;
    }
View Full Code Here

Examples of org.apache.cxf.jaxrs.impl.PathSegmentImpl

            return null;
        }
       
        if (pType == ParameterType.PATH) {
            if (PathSegment.class.isAssignableFrom(pClass)) {
                return new PathSegmentImpl(value, decoded);  
            } else {
                value = new PathSegmentImpl(value, false).getPath();                
            }
        }
       
        value = decodeValue(value, decoded, pType);
       
View Full Code Here

Examples of org.apache.cxf.jaxrs.impl.PathSegmentImpl

                                                    boolean ignoreLastSlash) {
        String[] segments = thePath.split("/");
        List<PathSegment> theList = new ArrayList<PathSegment>();
        for (String path : segments) {
            if (!StringUtils.isEmpty(path)) {
                theList.add(new PathSegmentImpl(path, decode));
            }
        }
        int len = thePath.length();
        if (len > 0 && thePath.charAt(len - 1) == '/') {
            String value = ignoreLastSlash ? "" : "/";
            theList.add(new PathSegmentImpl(value, false));
        }
        return theList;
    }
View Full Code Here

Examples of org.apache.cxf.jaxrs.impl.PathSegmentImpl

            return null;
        }
       
        if (pType == ParameterType.PATH) {
            if (PathSegment.class.isAssignableFrom(pClass)) {
                return new PathSegmentImpl(value, decoded);  
            } else {
                value = new PathSegmentImpl(value, false).getPath();                
            }
        }
       
        value = decodeValue(value, decoded, pType);
       
View Full Code Here

Examples of org.apache.cxf.jaxrs.impl.PathSegmentImpl

        if (value == null) {
            return null;
        }
        if (pType == ParameterType.PATH) {
            if (PathSegment.class.isAssignableFrom(pClass)) {
                return pClass.cast(new PathSegmentImpl(value, decoded));  
            } else if (!MessageUtils.isTrue(
                        message.getContextualProperty(IGNORE_MATRIX_PARAMETERS))) {
                value = new PathSegmentImpl(value, false).getPath();   
            }
        }
       
        value = decodeValue(value, decoded, pType);
       
View Full Code Here

Examples of org.apache.cxf.jaxrs.impl.PathSegmentImpl

                                                    boolean ignoreLastSlash) {
        String[] segments = StringUtils.split(thePath, "/");
        List<PathSegment> theList = new ArrayList<PathSegment>();
        for (String path : segments) {
            if (!StringUtils.isEmpty(path)) {
                theList.add(new PathSegmentImpl(path, decode));
            }
        }
        int len = thePath.length();
        if (len > 0 && thePath.charAt(len - 1) == '/') {
            String value = ignoreLastSlash ? "" : "/";
            theList.add(new PathSegmentImpl(value, false));
        }
        return theList;
    }
View Full Code Here

Examples of org.apache.cxf.jaxrs.impl.PathSegmentImpl

                                                    boolean ignoreLastSlash) {
        String[] segments = thePath.split("/");
        List<PathSegment> theList = new ArrayList<PathSegment>();
        for (String path : segments) {
            if (!StringUtils.isEmpty(path)) {
                theList.add(new PathSegmentImpl(path, decode));
            }
        }
        int len = thePath.length();
        if (len > 0 && thePath.charAt(len - 1) == '/') {
            String value = ignoreLastSlash ? "" : "/";
            theList.add(new PathSegmentImpl(value, false));
        }
        return theList;
    }
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.