org.apache.servicemix.soap.bindings.http.interceptors
Class IriDecoderHelper

java.lang.Object
  extended by org.apache.servicemix.soap.bindings.http.interceptors.IriDecoderHelper

public class IriDecoderHelper
extends java.lang.Object

Author:
Guillaume Nodet

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

Constructor Detail

IriDecoderHelper

public IriDecoderHelper()
Method Detail

decodeIri

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

addParams

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

findPartEnd

public static int findPartEnd(java.lang.String path,
                              int c)

expect

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


getUriPath

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


combine

public static java.lang.String combine(java.lang.String location,
                                       java.lang.String httpLocation)

buildDocument

public static org.w3c.dom.Document buildDocument(org.apache.ws.commons.schema.XmlSchemaElement element,
                                                 java.util.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 org.w3c.dom.Document interopolateParams(org.w3c.dom.Document doc,
                                                      org.apache.ws.commons.schema.XmlSchemaElement element,
                                                      java.util.List<IriDecoderHelper.Param> params)

decode

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


Copyright © 2005-2012 FuseSource. All Rights Reserved.