Nuxeo ECM Projects 5.4.3-SNAPSHOT

org.nuxeo.ecm.automation.client.jaxrs.spi
Class Request

java.lang.Object
  extended by java.util.AbstractMap<K,V>
      extended by java.util.HashMap<String,String>
          extended by org.nuxeo.ecm.automation.client.jaxrs.spi.Request
All Implemented Interfaces:
Serializable, Cloneable, Map<String,String>

public class Request
extends HashMap<String,String>

Author:
Bogdan Stefanescu
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
 
Field Summary
static int GET
           
static int POST
           
 
Constructor Summary
Request(int method, String url)
           
Request(int method, String url, MimeMultipart entity)
           
Request(int method, String url, String entity)
           
 
Method Summary
 MimeMultipart asMultiPartEntity()
           
 String asStringEntity()
           
 Object getEntity()
           
 int getMethod()
           
 String getUrl()
           
 Object handleResult(int status, String ctype, String disp, InputStream stream)
          Must read the object from the server response and return it or throw a RemoteException if server sent an error.
 boolean isMultiPart()
           
 
Methods inherited from class java.util.HashMap
clear, clone, containsKey, containsValue, entrySet, get, isEmpty, keySet, put, putAll, remove, size, values
 
Methods inherited from class java.util.AbstractMap
equals, hashCode, toString
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Map
equals, hashCode
 

Field Detail

GET

public static final int GET
See Also:
Constant Field Values

POST

public static final int POST
See Also:
Constant Field Values
Constructor Detail

Request

public Request(int method,
               String url)

Request

public Request(int method,
               String url,
               MimeMultipart entity)

Request

public Request(int method,
               String url,
               String entity)
Method Detail

getMethod

public int getMethod()

getUrl

public String getUrl()

getEntity

public Object getEntity()

isMultiPart

public final boolean isMultiPart()

asMultiPartEntity

public MimeMultipart asMultiPartEntity()

asStringEntity

public String asStringEntity()

handleResult

public Object handleResult(int status,
                           String ctype,
                           String disp,
                           InputStream stream)
                    throws Exception
Must read the object from the server response and return it or throw a RemoteException if server sent an error.

Throws:
Exception

Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.