org.apache.cxf.binding.http
Class IriDecoderHelper
java.lang.Object
org.apache.cxf.binding.http.IriDecoderHelper
public final class IriDecoderHelper
- extends java.lang.Object
- Author:
- Guillaume Nodet
Field Summary |
static java.util.ResourceBundle |
BUNDLE
|
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.XmlSchemaAnnotated schemaAnnotation,
java.util.Collection<SchemaInfo> schemas,
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,
java.lang.String endFragment)
|
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.XmlSchemaAnnotated schemaAnnotation,
java.util.Collection<SchemaInfo> schemas,
java.util.List<IriDecoderHelper.Param> params)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BUNDLE
public static final java.util.ResourceBundle BUNDLE
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,
java.lang.String endFragment)
- Parameters:
endFragment
-
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.XmlSchemaAnnotated schemaAnnotation,
java.util.Collection<SchemaInfo> schemas,
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.XmlSchemaAnnotated schemaAnnotation,
java.util.Collection<SchemaInfo> schemas,
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)
Apache CXF