Class AbstractEntityRequestType
java.lang.Object
org.eclipse.ecf.remoteservice.rest.client.AbstractRequestType
org.eclipse.ecf.remoteservice.rest.client.AbstractEntityRequestType
- All Implemented Interfaces:
IRemoteCallableRequestType
- Direct Known Subclasses:
HttpPostRequestType
,HttpPutRequestType
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
static final String
static final long
static final String
static final String
protected String
protected long
protected String
static final int
static final int
static final int
protected int
static final int
Fields inherited from class org.eclipse.ecf.remoteservice.rest.client.AbstractRequestType
defaultRequestHeaders
-
Constructor Summary
ConstructorDescriptionAbstractEntityRequestType
(int requestEntityType, String defaultContentType) AbstractEntityRequestType
(int requestEntityType, String defaultContentType, long defaultContentLength) AbstractEntityRequestType
(int requestEntityType, String defaultContentType, long defaultContentLength, String defaultCharset) AbstractEntityRequestType
(int requestEntityType, String defaultContentType, long defaultContentLength, String defaultCharset, Map defaultRequestHeaders) AbstractEntityRequestType
(int requestEntityType, String defaultContentType, long defaultContentLength, Map defaultRequestHeaders) AbstractEntityRequestType
(int requestEntityType, String defaultContentType, Map defaultRequestHeaders) AbstractEntityRequestType
(int requestEntityType, Map defaultRequestHeaders) AbstractEntityRequestType
(Map defaultRequestHeaders) -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.http.HttpEntity
generateRequestEntity
(String uri, IRemoteCall call, IRemoteCallable callable, IRemoteCallParameter paramDefault, Object paramToSerialize) protected String
getCharset
(IRemoteCall call, IRemoteCallable callable, IRemoteCallParameter paramDefault) protected long
getContentLength
(IRemoteCall call, IRemoteCallable callable, IRemoteCallParameter paramDefault) protected String
getContentType
(IRemoteCall call, IRemoteCallable callable, IRemoteCallParameter paramDefault) boolean
Methods inherited from class org.eclipse.ecf.remoteservice.rest.client.AbstractRequestType
getDefaultRequestHeaders
-
Field Details
-
NO_REQUEST_ENTITY
public static final int NO_REQUEST_ENTITY- See Also:
-
INPUT_STREAM_REQUEST_ENTITY
public static final int INPUT_STREAM_REQUEST_ENTITY- See Also:
-
STRING_REQUEST_ENTITY
public static final int STRING_REQUEST_ENTITY- See Also:
-
BYTEARRAY_REQUEST_ENTITY
public static final int BYTEARRAY_REQUEST_ENTITY- See Also:
-
FILE_REQUEST_ENTITY
public static final int FILE_REQUEST_ENTITY- See Also:
-
CONTENT_LENGTH_AUTO
public static final long CONTENT_LENGTH_AUTO- See Also:
-
CHARSET_PARAM_NAME
- See Also:
-
CONTENT_TYPE_PARAM_NAME
- See Also:
-
CONTENT_LENGTH_PARAM_NAME
- See Also:
-
requestEntityType
protected int requestEntityType -
defaultContentLength
protected long defaultContentLength -
defaultContentType
-
defaultCharset
-
-
Constructor Details
-
AbstractEntityRequestType
-
AbstractEntityRequestType
-
AbstractEntityRequestType
-
AbstractEntityRequestType
public AbstractEntityRequestType(int requestEntityType, String defaultContentType, long defaultContentLength) -
AbstractEntityRequestType
-
AbstractEntityRequestType
-
AbstractEntityRequestType
-
AbstractEntityRequestType
-
AbstractEntityRequestType
public AbstractEntityRequestType()
-
-
Method Details
-
useRequestEntity
public boolean useRequestEntity() -
generateRequestEntity
public org.apache.http.HttpEntity generateRequestEntity(String uri, IRemoteCall call, IRemoteCallable callable, IRemoteCallParameter paramDefault, Object paramToSerialize) throws NotSerializableException - Throws:
NotSerializableException
-
getCharset
protected String getCharset(IRemoteCall call, IRemoteCallable callable, IRemoteCallParameter paramDefault) -
getContentLength
protected long getContentLength(IRemoteCall call, IRemoteCallable callable, IRemoteCallParameter paramDefault) -
getContentType
protected String getContentType(IRemoteCall call, IRemoteCallable callable, IRemoteCallParameter paramDefault)
-