|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface HttpMessage
A specialized implementation of Message used by HTTP Destinations. Additional HTTP specific
concepts, such as method and response codes, are supported by this Message.
| Field Summary | ||
|---|---|---|
static String |
DELETE
The HTTP method constant for DELETE request |
|
static String |
GET
The HTTP method constant for GET request |
|
static String |
HEAD
The HTTP method constant for HEAD request |
|
static String |
POST
The HTTP method constant for POST request |
|
static String |
PUT
The HTTP method constant for PUT request |
|
| Method Summary | ||
|---|---|---|
String |
getMethod()
Returns the HTTP method used with this message. |
|
String |
getQueryParamString()
Returns the query parameter string (as it appears after the "?" |
|
int |
getResponseCode()
Returns the HTTP response code. |
|
void |
setMethod(String method)
Sets the HTTP method used when sending this message. |
|
void |
setQueryParam(String key,
String value)
Sets an individual query parameter. |
|
void |
setQueryParam(String key,
String[] value)
Sets an HTTP query parameter with the values used by this message. |
|
| Field Detail |
|---|
static final String HEAD
static final String GET
static final String PUT
static final String POST
static final String DELETE
| Method Detail |
|---|
void setMethod(String method)
Destination for this message uses a transport
other than HTTP, then this parameter will be ignored.
method - The HTTP method constant identifying which HTTP method should be used.String getMethod()
int getResponseCode()
void setQueryParam(String key,
String[] value)
key - Key for the query parametervalue - Values for the query parameter. Values will be placed in the query string in the order they appear in
the Array.
void setQueryParam(String key,
String value)
key - Key for the query parameter.value - Value for the query parameter.String getQueryParamString()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Copyright 1999-2011 Research In Motion Limited. 295 Phillip Street, Waterloo, Ontario, Canada, N2L 3W8. All Rights Reserved.
Java is a trademark of Oracle America Inc. in the US and other countries.
Legal