Apache CXF API

org.apache.cxf.binding.http
Class IriDecoderHelper

java.lang.Object
  extended by org.apache.cxf.binding.http.IriDecoderHelper

public final class IriDecoderHelper
extends Object

Author:
Guillaume Nodet

Nested Class Summary
static class IriDecoderHelper.Param
          Simple holder class for a name/value pair.
 
Field Summary
static ResourceBundle BUNDLE
           
 
Method Summary
static void addParams(String input, int start, int stop, List<IriDecoderHelper.Param> params)
           
static Document buildDocument(org.apache.ws.commons.schema.XmlSchemaAnnotated schemaAnnotation, Collection<SchemaInfo> schemas, List<IriDecoderHelper.Param> params)
          Create a dom document conformant with the given schema element with the input parameters.
static String combine(String location, String httpLocation)
           
static List<IriDecoderHelper.Param> decode(String uri, String loc, InputStream is)
           
static List<IriDecoderHelper.Param> decodeIri(String uri, String loc)
           
static void expect(String path, int index, char c)
          Check that the next character is the one expected or throw an exception
static int findPartEnd(String path, int c, String endFragment)
           
static String getUriPath(String uri)
          Get the path of a given uri, removing the scheme and authority parts
static Document interopolateParams(Document doc, org.apache.ws.commons.schema.XmlSchemaAnnotated schemaAnnotation, Collection<SchemaInfo> schemas, List<IriDecoderHelper.Param> params)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

BUNDLE

public static final ResourceBundle BUNDLE
Method Detail

decodeIri

public static List<IriDecoderHelper.Param> decodeIri(String uri,
                                                     String loc)

addParams

public static void addParams(String input,
                             int start,
                             int stop,
                             List<IriDecoderHelper.Param> params)

findPartEnd

public static int findPartEnd(String path,
                              int c,
                              String endFragment)
Parameters:
endFragment -

expect

public static void expect(String path,
                          int index,
                          char c)
Check that the next character is the one expected or throw an exception


getUriPath

public static String getUriPath(String uri)
Get the path of a given uri, removing the scheme and authority parts


combine

public static String combine(String location,
                             String httpLocation)

buildDocument

public static Document buildDocument(org.apache.ws.commons.schema.XmlSchemaAnnotated schemaAnnotation,
                                     Collection<SchemaInfo> schemas,
                                     List<IriDecoderHelper.Param> params)
Create a dom document conformant with the given schema element with the input parameters.

Parameters:
element -
params -
Returns:

interopolateParams

public static Document interopolateParams(Document doc,
                                          org.apache.ws.commons.schema.XmlSchemaAnnotated schemaAnnotation,
                                          Collection<SchemaInfo> schemas,
                                          List<IriDecoderHelper.Param> params)

decode

public static List<IriDecoderHelper.Param> decode(String uri,
                                                  String loc,
                                                  InputStream is)

Apache CXF API

Apache CXF