|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.gsm.oneapi.responsebean.location.LocationResponse
public class LocationResponse
The LocationResponse contains all information returned from the OneAPI server given a request to locate one or more mobile terminals
Nested Class Summary | |
---|---|
static class |
LocationResponse.TerminalLocationList
the array of TerminalLocation responses is contained within the TerminalLocationList inner class |
Constructor Summary | |
---|---|
LocationResponse()
|
Method Summary | |
---|---|
java.lang.String |
getContentType()
return the HTTP Content-Type returned from the server if available |
int |
getHTTPResponseCode()
return the HTTP response code returned from the server |
java.lang.String |
getLocation()
return the HTTP location field returned form the server |
RequestError |
getRequestError()
return the server generated error response (from the JSON based error response) |
LocationResponse.TerminalLocationList |
getTerminalLocationList()
return the actual location responses |
void |
setContentType(java.lang.String contentType)
set the HTTP Content-Type header returned by the server |
void |
setHTTPResponseCode(int httpResponseCode)
set the stored HTTP response code |
void |
setLocation(java.lang.String location)
set the HTTP location field |
void |
setRequestError(RequestError requestError)
set the contents of the error response |
void |
setTerminalLocationList(LocationResponse.TerminalLocationList terminalLocationList)
set terminalLocationList containing the actual location responses. |
java.lang.String |
toString()
generate a textual representation of the LocationResponse including all nested elements and classes |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public LocationResponse()
Method Detail |
---|
public int getHTTPResponseCode()
public java.lang.String getContentType()
public RequestError getRequestError()
public void setHTTPResponseCode(int httpResponseCode)
httpResponseCode
- sets the stored HTTP response codepublic void setContentType(java.lang.String contentType)
contentType
- sets the stored HTTP Content-Type headerpublic void setRequestError(RequestError requestError)
requestError
- sets the contents of the error responseRequestError
public java.lang.String getLocation()
public void setLocation(java.lang.String location)
location
- contents of the HTTP location headerpublic LocationResponse.TerminalLocationList getTerminalLocationList()
public void setTerminalLocationList(LocationResponse.TerminalLocationList terminalLocationList)
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |