public class

Response

extends Object
java.lang.Object
   ↳ com.esri.core.map.bing.Response<V extends com.esri.core.map.bing.Result>

Class Overview

Generic class to handle responses from Bing Maps services.

Please refer to this page for a description of a Bing Maps service response: http://msdn.microsoft.com/en-us/library /ff701707.aspx

Summary

Public Constructors
Response(Class<V> resultClass)
The Constructor.
Public Methods
void fromJson(JsonParser parser)
Populates a Response using a Json response
String getAuthenticationResultCode()
Returns the authentication code.
URL getBrandLogoUri()
Returns the brand logo URI.
String getCopyright()
Returns the copyright.
int getOutSR()
Returns the output spatial reference of the results.
List<V> getResults()
Returns a List of results
int getStatusCode()
Returns the status code.
String getStatusDescription()
Returns the status description
String getTraceId()
Returns the trace ID
void setOutSR(int outSR)
Sets the output spatial reference of the results.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public Response (Class<V> resultClass)

The Constructor.

Parameters
resultClass Class: the result class

Public Methods

public void fromJson (JsonParser parser)

Populates a Response using a Json response

Parameters
parser JsonParser: JsonParser containing the Json response
Throws
Exception
Exception

public String getAuthenticationResultCode ()

Returns the authentication code.

Returns
String the authenticationResultCode

public URL getBrandLogoUri ()

Returns the brand logo URI.

Returns
URL the brandLogoUri

public String getCopyright ()

Returns the copyright.

Returns
String the copyright

public int getOutSR ()

Returns the output spatial reference of the results. -1 if none has been set.

Returns
int the output spatial reference of the results

public List<V> getResults ()

Returns a List of results

Returns
List<V> the results

public int getStatusCode ()

Returns the status code.

Returns
int the statusCode

public String getStatusDescription ()

Returns the status description

Returns
String the statusDescription

public String getTraceId ()

Returns the trace ID

Returns
String the traceId

public void setOutSR (int outSR)

Sets the output spatial reference of the results.

Parameters
outSR int: the outSR to set