org.apache.clerezza.triaxrs.util
Class QueryStringParser

java.lang.Object
  extended by org.apache.clerezza.triaxrs.util.QueryStringParser

public class QueryStringParser
extends Object

utility for query string parsing

Version:
$Id: $
Author:
szalay

Constructor Summary
QueryStringParser()
           
 
Method Summary
static javax.ws.rs.core.MultivaluedMap<String,String> extractPathParameters(String parameters, String deliminator, boolean decode)
          TODO: This is not very efficient
static javax.ws.rs.core.MultivaluedMap<String,String> getFormParameters(org.wymiwyg.wrhapi.MessageBody body, boolean encode)
           
static javax.ws.rs.core.MultivaluedMap<String,String> getMatrix(String query, boolean encode)
           
static List<String> getParameterValues(String query, boolean encode, String value)
           
static List<javax.ws.rs.core.PathSegment> getPathSegments(String path, boolean decode)
          Extract the path segments from the path TODO: This is not very efficient
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QueryStringParser

public QueryStringParser()
Method Detail

getMatrix

public static javax.ws.rs.core.MultivaluedMap<String,String> getMatrix(String query,
                                                                       boolean encode)

getParameterValues

public static List<String> getParameterValues(String query,
                                              boolean encode,
                                              String value)

getFormParameters

public static javax.ws.rs.core.MultivaluedMap<String,String> getFormParameters(org.wymiwyg.wrhapi.MessageBody body,
                                                                               boolean encode)

getPathSegments

public static List<javax.ws.rs.core.PathSegment> getPathSegments(String path,
                                                                 boolean decode)
Extract the path segments from the path TODO: This is not very efficient


extractPathParameters

public static javax.ws.rs.core.MultivaluedMap<String,String> extractPathParameters(String parameters,
                                                                                   String deliminator,
                                                                                   boolean decode)
TODO: This is not very efficient



Copyright © 2012 The Apache Software Foundation. All Rights Reserved.