Nuxeo ECM Projects 5.4.3-SNAPSHOT

org.nuxeo.runtime.test.protocols.inline
Class InlineURLFactory

java.lang.Object
  extended by org.nuxeo.runtime.test.protocols.inline.InlineURLFactory

public class InlineURLFactory
extends Object


Constructor Summary
InlineURLFactory()
           
 
Method Summary
static byte[] getBytes(URL url)
           
static void install()
           
static
<T> byte[]
marshall(T content)
           
static
<T> T
newObject(Class<T> clazz, URL url)
           
static URL newURL(String mimetype, byte[] data)
           
static
<T> URL
newURL(T content)
           
static
<T> T
unmarshall(Class<T> clazz, byte[] data)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InlineURLFactory

public InlineURLFactory()
Method Detail

install

public static void install()

marshall

public static <T> byte[] marshall(T content)
                       throws IOException
Throws:
IOException

unmarshall

public static <T> T unmarshall(Class<T> clazz,
                               byte[] data)
                    throws IOException
Throws:
IOException

newURL

public static <T> URL newURL(T content)
                  throws IOException
Throws:
IOException

newURL

public static URL newURL(String mimetype,
                         byte[] data)
                  throws IOException
Throws:
IOException

newObject

public static <T> T newObject(Class<T> clazz,
                              URL url)
                   throws IOException
Throws:
IOException

getBytes

public static byte[] getBytes(URL url)
                       throws IOException
Throws:
IOException

Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.