com.esri.core.map.bing
Class Response<V extends Result>

java.lang.Object
  extended by com.esri.core.map.bing.Response<V>
Type Parameters:
V - a result class implementing the Result interface

public class Response<V extends Result>
extends Object

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


Constructor Summary
Response(Class<V> resultClass)
           
 
Method Summary
 void fromJson(org.codehaus.jackson.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.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Response

public Response(Class<V> resultClass)
Method Detail

getAuthenticationResultCode

public String getAuthenticationResultCode()
Returns the authentication code.

Returns:
the authenticationResultCode

getBrandLogoUri

public URL getBrandLogoUri()
Returns the brand logo URI.

Returns:
the brandLogoUri

getCopyright

public String getCopyright()
Returns the copyright.

Returns:
the copyright

getStatusCode

public int getStatusCode()
Returns the status code.

Returns:
the statusCode

getStatusDescription

public String getStatusDescription()
Returns the status description

Returns:
the statusDescription

getTraceId

public String getTraceId()
Returns the trace ID

Returns:
the traceId

getResults

public List<V> getResults()
Returns a List of results

Returns:
the results

getOutSR

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

setOutSR

public void setOutSR(int outSR)
Sets the output spatial reference of the results.

Parameters:
outSR - the outSR to set

fromJson

public void fromJson(org.codehaus.jackson.JsonParser parser)
              throws Exception
Populates a Response using a Json response

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


Copyright © 2012. All Rights Reserved.