com.esri.arcgis.gisclient
Class Uploader

java.lang.Object
  extended by com.esri.arcgis.gisclient.Uploader
All Implemented Interfaces:
IAdminUploader, IServiceUploader, IUploader, com.esri.arcgis.interop.RemoteObjRef, Serializable

public class Uploader
extends Object
implements com.esri.arcgis.interop.RemoteObjRef, IUploader, IAdminUploader, IServiceUploader

The uploader object.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

See Also:
Serialized Form

Constructor Summary
Uploader()
          Constructs a Uploader using ArcGIS Engine.
Uploader(Object obj)
          Deprecated. As of ArcGIS 9.2, replaced by normal Java casts.
Uploader theUploader = (Uploader) obj;
 
Method Summary
 IUploadItem adminUploadFile(String file, String description, ITrackCancel pTrackCancel)
          .
 boolean equals(Object o)
          Compare this object with another
static String getClsid()
          getClsid.
 int getSingleUploadThresholdInBytes()
          .
 int getTimeoutInSecs()
          .
 IUploadsClient getUploadsClient()
          .
 int hashCode()
          the hashcode for this object
 void init(IAGSServerConnection pConn)
          .
 IUploadItem serviceUploadFile(String file, String description, IAGSServerObjectName pTargetService, ITrackCancel pTrackCancel)
          .
 void setSingleUploadThresholdInBytes(int pThreshold)
          .
 void setTimeoutInSecs(int pTimeout)
          .
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.esri.arcgis.interop.RemoteObjRef
getJintegraDispatch, release
 

Constructor Detail

Uploader

public Uploader()
         throws IOException,
                UnknownHostException
Constructs a Uploader using ArcGIS Engine.

Throws:
IOException - if there are interop problems
UnknownHostException - if there are interop problems

Uploader

public Uploader(Object obj)
         throws IOException
Deprecated. As of ArcGIS 9.2, replaced by normal Java casts.
Uploader theUploader = (Uploader) obj;

Construct a Uploader using a reference to such an object returned from ArcGIS Engine or Server. This is semantically equivalent to casting obj to Uploader.

Parameters:
obj - an object returned from ArcGIS Engine or Server
Throws:
IOException - if there are interop problems
Method Detail

getClsid

public static String getClsid()
getClsid.


equals

public boolean equals(Object o)
Compare this object with another

Overrides:
equals in class Object

hashCode

public int hashCode()
the hashcode for this object

Overrides:
hashCode in class Object

setSingleUploadThresholdInBytes

public void setSingleUploadThresholdInBytes(int pThreshold)
                                     throws IOException,
                                            AutomationException
.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Specified by:
setSingleUploadThresholdInBytes in interface IUploader
Parameters:
pThreshold - The pThreshold (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getSingleUploadThresholdInBytes

public int getSingleUploadThresholdInBytes()
                                    throws IOException,
                                           AutomationException
.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Specified by:
getSingleUploadThresholdInBytes in interface IUploader
Returns:
The pThreshold
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setTimeoutInSecs

public void setTimeoutInSecs(int pTimeout)
                      throws IOException,
                             AutomationException
.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Specified by:
setTimeoutInSecs in interface IUploader
Parameters:
pTimeout - The pTimeout (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getTimeoutInSecs

public int getTimeoutInSecs()
                     throws IOException,
                            AutomationException
.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Specified by:
getTimeoutInSecs in interface IUploader
Returns:
The pTimeout
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getUploadsClient

public IUploadsClient getUploadsClient()
                                throws IOException,
                                       AutomationException
.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Specified by:
getUploadsClient in interface IUploader
Returns:
A reference to a com.esri.arcgis.gisclient.IUploadsClient
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

init

public void init(IAGSServerConnection pConn)
          throws IOException,
                 AutomationException
.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Specified by:
init in interface IUploader
Parameters:
pConn - A reference to a com.esri.arcgis.gisclient.IAGSServerConnection (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

adminUploadFile

public IUploadItem adminUploadFile(String file,
                                   String description,
                                   ITrackCancel pTrackCancel)
                            throws IOException,
                                   AutomationException
.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Specified by:
adminUploadFile in interface IAdminUploader
Parameters:
file - The file (in)
description - The description (in)
pTrackCancel - A reference to a com.esri.arcgis.system.ITrackCancel (in)
Returns:
A reference to a com.esri.arcgis.gisclient.IUploadItem
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

serviceUploadFile

public IUploadItem serviceUploadFile(String file,
                                     String description,
                                     IAGSServerObjectName pTargetService,
                                     ITrackCancel pTrackCancel)
                              throws IOException,
                                     AutomationException
.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Specified by:
serviceUploadFile in interface IServiceUploader
Parameters:
file - The file (in)
description - The description (in)
pTargetService - A reference to a com.esri.arcgis.gisclient.IAGSServerObjectName (in)
pTrackCancel - A reference to a com.esri.arcgis.system.ITrackCancel (in)
Returns:
A reference to a com.esri.arcgis.gisclient.IUploadItem
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.