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

Since:
1.0

Constructor Summary
Response(Class<V> resultClass)
          The Constructor.
 
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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Response

public Response(Class<V> resultClass)
The Constructor.

Parameters:
resultClass - the result class
Since:
1.0
Method Detail

getAuthenticationResultCode

public String getAuthenticationResultCode()
Returns the authentication code.

Returns:
the authenticationResultCode
Since:
1.0

getBrandLogoUri

public URL getBrandLogoUri()
Returns the brand logo URI.

Returns:
the brandLogoUri
Since:
1.0

getCopyright

public String getCopyright()
Returns the copyright.

Returns:
the copyright
Since:
1.0

getStatusCode

public int getStatusCode()
Returns the status code.

Returns:
the statusCode
Since:
1.0

getStatusDescription

public String getStatusDescription()
Returns the status description.

Returns:
the statusDescription
Since:
1.0

getTraceId

public String getTraceId()
Returns the trace ID.

Returns:
the traceId
Since:
1.0

getResults

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

Returns:
the results
Since:
1.0

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
Since:
1.0

setOutSR

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

Parameters:
outSR - the outSR to set
Since:
1.0

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 - the exception
Since:
1.0


Copyright © 2010. All Rights Reserved.