Nuxeo Filesystem Connectors 5.5-SNAPSHOT

org.nuxeo.ecm.webdav
Class Util

java.lang.Object
  extended by org.nuxeo.ecm.webdav.Util

public class Util
extends Object

Utility functions.


Constructor Summary
Util()
           
 
Method Summary
static String encode(byte[] bytes, String encoding)
           
static JAXBContext getJaxbContext()
           
static String getNameFromPath(String path)
           
static String getParentPath(String path)
           
static String getTokenFromHeaders(String headerName, HttpServletRequest request)
           
static Unmarshaller getUnmarshaller()
           
static String normalizePath(String path)
           
static void printAsXml(Object o)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Util

public Util()
Method Detail

getJaxbContext

public static JAXBContext getJaxbContext()
                                  throws JAXBException
Throws:
JAXBException

getUnmarshaller

public static Unmarshaller getUnmarshaller()
                                    throws JAXBException
Throws:
JAXBException

printAsXml

public static void printAsXml(Object o)
                       throws JAXBException
Throws:
JAXBException

normalizePath

public static String normalizePath(String path)

getParentPath

public static String getParentPath(String path)

getNameFromPath

public static String getNameFromPath(String path)

getTokenFromHeaders

public static String getTokenFromHeaders(String headerName,
                                         HttpServletRequest request)

encode

public static String encode(byte[] bytes,
                            String encoding)
                     throws org.nuxeo.ecm.core.api.ClientException
Throws:
org.nuxeo.ecm.core.api.ClientException

Nuxeo Filesystem Connectors 5.5-SNAPSHOT

Copyright © 2011 Nuxeo SA. All Rights Reserved.