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
public abstract class AbstractEntityRequestType extends AbstractRequestType
-
-
Field Summary
Fields Modifier and Type Field Description static intBYTEARRAY_REQUEST_ENTITYstatic StringCHARSET_PARAM_NAMEstatic longCONTENT_LENGTH_AUTOstatic StringCONTENT_LENGTH_PARAM_NAMEstatic StringCONTENT_TYPE_PARAM_NAMEprotected StringdefaultCharsetprotected longdefaultContentLengthprotected StringdefaultContentTypestatic intFILE_REQUEST_ENTITYstatic intINPUT_STREAM_REQUEST_ENTITYstatic intNO_REQUEST_ENTITYprotected intrequestEntityTypestatic intSTRING_REQUEST_ENTITY-
Fields inherited from class org.eclipse.ecf.remoteservice.rest.client.AbstractRequestType
defaultRequestHeaders
-
-
Constructor Summary
Constructors Constructor Description AbstractEntityRequestType()AbstractEntityRequestType(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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.http.HttpEntitygenerateRequestEntity(String uri, IRemoteCall call, IRemoteCallable callable, IRemoteCallParameter paramDefault, Object paramToSerialize)protected StringgetCharset(IRemoteCall call, IRemoteCallable callable, IRemoteCallParameter paramDefault)protected longgetContentLength(IRemoteCall call, IRemoteCallable callable, IRemoteCallParameter paramDefault)protected StringgetContentType(IRemoteCall call, IRemoteCallable callable, IRemoteCallParameter paramDefault)booleanuseRequestEntity()-
Methods inherited from class org.eclipse.ecf.remoteservice.rest.client.AbstractRequestType
getDefaultRequestHeaders
-
-
-
-
Field Detail
-
NO_REQUEST_ENTITY
public static final int NO_REQUEST_ENTITY
- See Also:
- Constant Field Values
-
INPUT_STREAM_REQUEST_ENTITY
public static final int INPUT_STREAM_REQUEST_ENTITY
- See Also:
- Constant Field Values
-
STRING_REQUEST_ENTITY
public static final int STRING_REQUEST_ENTITY
- See Also:
- Constant Field Values
-
BYTEARRAY_REQUEST_ENTITY
public static final int BYTEARRAY_REQUEST_ENTITY
- See Also:
- Constant Field Values
-
FILE_REQUEST_ENTITY
public static final int FILE_REQUEST_ENTITY
- See Also:
- Constant Field Values
-
CONTENT_LENGTH_AUTO
public static final long CONTENT_LENGTH_AUTO
- See Also:
- Constant Field Values
-
CHARSET_PARAM_NAME
public static final String CHARSET_PARAM_NAME
- See Also:
- Constant Field Values
-
CONTENT_TYPE_PARAM_NAME
public static final String CONTENT_TYPE_PARAM_NAME
- See Also:
- Constant Field Values
-
CONTENT_LENGTH_PARAM_NAME
public static final String CONTENT_LENGTH_PARAM_NAME
- See Also:
- Constant Field Values
-
requestEntityType
protected int requestEntityType
-
defaultContentLength
protected long defaultContentLength
-
defaultContentType
protected String defaultContentType
-
defaultCharset
protected String defaultCharset
-
-
Constructor Detail
-
AbstractEntityRequestType
public AbstractEntityRequestType(int requestEntityType, String defaultContentType, long defaultContentLength, String defaultCharset, Map defaultRequestHeaders)
-
AbstractEntityRequestType
public AbstractEntityRequestType(int requestEntityType, String defaultContentType, long defaultContentLength, String defaultCharset)
-
AbstractEntityRequestType
public AbstractEntityRequestType(int requestEntityType, String defaultContentType, long defaultContentLength, Map defaultRequestHeaders)
-
AbstractEntityRequestType
public AbstractEntityRequestType(int requestEntityType, String defaultContentType, long defaultContentLength)
-
AbstractEntityRequestType
public AbstractEntityRequestType(int requestEntityType, String defaultContentType, Map defaultRequestHeaders)
-
AbstractEntityRequestType
public AbstractEntityRequestType(int requestEntityType, String defaultContentType)
-
AbstractEntityRequestType
public AbstractEntityRequestType(int requestEntityType, Map defaultRequestHeaders)
-
AbstractEntityRequestType
public AbstractEntityRequestType(Map defaultRequestHeaders)
-
AbstractEntityRequestType
public AbstractEntityRequestType()
-
-
Method Detail
-
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)
-
-