Esri Geoportal Server
1.2.9

com.esri.gpt.agp.client
Class AgpClient

java.lang.Object
  extended by com.esri.gpt.agp.client.AgpClient

public class AgpClient
extends Object

An ArcGIS Portal client.


Constructor Summary
AgpClient()
          Default constructor.
 
Method Summary
 void close()
          Closes any open resources.
 org.json.JSONObject executeJsonRequest(String url, AgpProperties requestHeader, ContentProvider contentProvider)
          Executes a request expecting a JSON response.
 org.json.JSONObject executeJsonRequest(String url, AgpProperties requestHeader, StringBuilder content, String contentType)
          Executes a request expecting a JSON response.
 void executeRequest(String url, AgpProperties requestHeader, ContentProvider contentProvider, ContentHandler contentHandler)
          Executes a request.
protected  HttpClientRequest newHttpClientRequest()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AgpClient

public AgpClient()
Default constructor.

Method Detail

close

public void close()
Closes any open resources.


executeJsonRequest

public org.json.JSONObject executeJsonRequest(String url,
                                              AgpProperties requestHeader,
                                              ContentProvider contentProvider)
                                       throws Exception
Executes a request expecting a JSON response.

Parameters:
url - the URL
requestHeader - optional request header properties
contentProvider - the request body content provider
Returns:
the JSON response object
Throws:
Exception - is an exception occurs

executeJsonRequest

public org.json.JSONObject executeJsonRequest(String url,
                                              AgpProperties requestHeader,
                                              StringBuilder content,
                                              String contentType)
                                       throws Exception
Executes a request expecting a JSON response.

Parameters:
url - the URL
requestHeader - optional request header properties
content - the request body content
contentType - the request body content type
Returns:
the JSON response object
Throws:
Exception - is an exception occurs

executeRequest

public void executeRequest(String url,
                           AgpProperties requestHeader,
                           ContentProvider contentProvider,
                           ContentHandler contentHandler)
                    throws Exception
Executes a request.

Parameters:
url - the URL
requestHeader - optional request header properties
contentProvider - the request body content provider
contentHandler - the response body content handler
Throws:
Exception - is an exception occurs

newHttpClientRequest

protected HttpClientRequest newHttpClientRequest()

Esri Geoportal Server
1.2.9

Copyright 2011 Environmental Systems Research Institute. All rights reserved. Use is subject to license terms.