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 the result class

Public Methods

public void fromJson (JsonParser parser)

Populates a Response using a Json response

Parameters
parser JsonParser containing the Json response
Throws
Exception
Exception

public String getAuthenticationResultCode ()

Returns the authentication code.

Returns
  • the authenticationResultCode

public URL getBrandLogoUri ()

Returns the brand logo URI.

Returns
  • the brandLogoUri

public String getCopyright ()

Returns the copyright.

Returns
  • the copyright

public int getOutSR ()

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

Returns
  • the output spatial reference of the results

public List<V> getResults ()

Returns a List of results

Returns
  • the results

public int getStatusCode ()

Returns the status code.

Returns
  • the statusCode

public String getStatusDescription ()

Returns the status description

Returns
  • the statusDescription

public String getTraceId ()

Returns the trace ID

Returns
  • the traceId

public void setOutSR (int outSR)

Sets the output spatial reference of the results.

Parameters
outSR the outSR to set