Esri Geoportal Server
1.2.0

com.esri.gpt.catalog.arcgis.agportal.publication
Class PublicationRequest

java.lang.Object
  extended by com.esri.gpt.catalog.arcgis.agportal.publication.PublicationRequest

public class PublicationRequest
extends Object

This class is used to handle publication request to ArcGIS Portal instance. NOTE! This is EXPERIMENTAL feature. It might be removed at any time in the future.


Constructor Summary
PublicationRequest(RequestContext requestContext, CredentialProvider credtialProvider, String httpReferer)
          Constructs a request to publish an itemInfo to ArcGIS Portal instance.
PublicationRequest(RequestContext requestContext, EndPoint endPoint, CredentialProvider credtialProvider, String httpReferer)
          Creates instance of the request.
 
Method Summary
 boolean publish(ESRI_ItemInformation itemInfo)
          Processes the ArcGIS Portal publication request.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PublicationRequest

public PublicationRequest(RequestContext requestContext,
                          EndPoint endPoint,
                          CredentialProvider credtialProvider,
                          String httpReferer)
                   throws Exception
Creates instance of the request.

Parameters:
requestContext - context
endPoint - end-point
credtialProvider - credential provider
httpReferer - referer
Throws:
Exception - if publication fails

PublicationRequest

public PublicationRequest(RequestContext requestContext,
                          CredentialProvider credtialProvider,
                          String httpReferer)
                   throws Exception
Constructs a request to publish an itemInfo to ArcGIS Portal instance.

Parameters:
requestContext - the request context
credtialProvider - the CredentialProvider
httpReferer - the Http Referer
Throws:
Exception
Method Detail

publish

public boolean publish(ESRI_ItemInformation itemInfo)
                throws IOException,
                       org.json.JSONException,
                       Exception
Processes the ArcGIS Portal publication request.

Parameters:
itemInfo - the ESRI_ItemInformation object.
Throws:
Exception
IOException
org.json.JSONException

Esri Geoportal Server
1.2.0

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