Nuxeo Enterprise Platform 5.4

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

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

public class Request
extends java.util.HashMap<java.lang.String,java.lang.String>

Author:
Bogdan Stefanescu
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class java.util.AbstractMap
java.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V>
 
Field Summary
static int GET
           
static int POST
           
 
Constructor Summary
Request(int method, java.lang.String url)
           
Request(int method, java.lang.String url, javax.mail.internet.MimeMultipart entity)
           
Request(int method, java.lang.String url, java.lang.String entity)
           
 
Method Summary
 javax.mail.internet.MimeMultipart asMultiPartEntity()
           
 java.lang.String asStringEntity()
           
 java.lang.Object getEntity()
           
 int getMethod()
           
 java.lang.Object getResult()
           
 java.lang.String getUrl()
           
 java.lang.Object handleResult(int status, java.lang.String ctype, java.lang.String disp, java.io.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,
               java.lang.String url)

Request

public Request(int method,
               java.lang.String url,
               javax.mail.internet.MimeMultipart entity)

Request

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

getMethod

public int getMethod()

getUrl

public java.lang.String getUrl()

getEntity

public java.lang.Object getEntity()

isMultiPart

public final boolean isMultiPart()

asMultiPartEntity

public javax.mail.internet.MimeMultipart asMultiPartEntity()

asStringEntity

public java.lang.String asStringEntity()

getResult

public java.lang.Object getResult()

handleResult

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

Throws:
java.lang.Exception

Nuxeo Enterprise Platform 5.4

Copyright © 2010 Nuxeo SAS. All Rights Reserved.