|
GData JavaScript Client 2.1 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Object | +--google.gdata.client.TransportResponse
Defined in gdata.js
Constructor Summary | |
google.gdata.client.TransportResponse()
|
Method Summary | |
void
|
addHeader(<string> headerKey, <string> headerValue)
Adds a header to the response. |
string
|
getResponseHeader(<string> headerKey)
Retrieves the header value with the given key. |
string
|
getResponseText()
Retreives the response text. |
string
|
getResponseXml()
Retreives the response text as xml. |
number
|
getStatus()
Retrieves the http status code of the response. |
string
|
getStatusText()
Retreives the text associated with the http status code of the response. |
void
|
setResponseText( <string> responseText)
Sets the response text. |
void
|
setResponseXml( <string> responseXml)
Sets the response text as xml. |
void
|
setStatus(<number> status)
Sets the http status code of the response. |
void
|
setStatusText( <string> statusText)
Sets the text associated with the http status code of the response. |
<static> google.gdata.client.TransportResponse
|
create(<Object> sourceResponse)
Creates a google.gdata.client.TransportResponse object. |
Constructor Detail |
google.gdata.client.TransportResponse()
Method Detail |
void addHeader(<string> headerKey, <string> headerValue)
headerKey
- The key used to access the header.
headerValue
- The value of the header.
string getResponseHeader(<string> headerKey)
headerKey
- The key used to access the header.
string getResponseText()
string getResponseXml()
number getStatus()
string getStatusText()
void setResponseText( <string> responseText)
responseText
- The response text.
void setResponseXml( <string> responseXml)
responseXml
- The response text as xml.
void setStatus(<number> status)
status
- The http status code of the response.
void setStatusText( <string> statusText)
statusText
- The text associated with the http status code of the response.
<static> google.gdata.client.TransportResponse create(<Object> sourceResponse)
sourceResponse
- The response object from an http request.
|
GData JavaScript Client 2.1 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |