public class MapServer extends java.lang.Object implements com.esri.arcgis.interop.RemoteObjRef, IMapServer, ITiledMapServer2, ITiledMapServer3, IObjectConstruct, IRequestHandler, IRequestHandler2, IObjectActivate, IObjectUpdate, ILogSupport, ISupportErrorInfo, IServerObject, IServerObjectExtensionManager, IObjectValidate, IMapServerDataAccess, IRESTRequestHandler
Description 'The MapServer component provides programmatic access to the contents of a map document on disk, and creates images of the map contents based on user requests. Designed for use in building map-based web services and web applications.' Generator Options: PromptForTypeLibraries = False ClashPrefix = esri_ LowerCaseMemberNames = True IDispatchOnly = False RetryOnReject = False AwtForOcxs = True ArraysAsObjects = False DontRenameSameMethods = False ImplementConflictingInterfaces = True ReuseMethods = True RenameConflictingInterfaceMethods = True GenBeanInfo = True GenerateJavadoc =
IID, IIDc1ee7009_1027_4f5a_89ae_0e2cec6fcef4, xxDummyIID, IIDb5339959_b276_4485_ac86_15f3a9a40395, xxDummyIID1627ce7e_954f_4013_9969_e726f8084c25IID, IID6c3d86d9_e02d_403f_94c2_427c5cf78c19, xxDummyIID, IID8319e7d0_8ad1_48ed_aa99_03f9d0c93ba8, xxDummyIID46a0e2ea_3b64_4a46_bd78_88a1660f35bbIID, IIDe3b78022_143e_4e61_9099_ed319ec061e7, xxDummyIID, IIDd641f414_1004_4e73_9386_f6ea543e2d95, xxDummyIID, IIDdf0b3d60_548f_101b_8e65_08002b2bd119, xxDummyIID, IID0ad6ab40_9d6a_4bf8_8b86_eb89406dfc6c, xxDummyIID, IID25d8b9dd_c7e8_4da4_bf4b_08a67087ceea, xxDummyIID, IID55446beb_10ca_40a4_9f40_261ca4a7f35a, xxDummyIID, IIDa3072b50_65e2_4035_b438_8363edd349c0, xxDummyIID, IID9d66a418_d54a_48ed_88bd_043a25fa9c83, xxDummy| Constructor and Description |
|---|
MapServer()
Constructs a MapServer using ArcGIS Engine.
|
MapServer(java.lang.Object obj)
Deprecated.
As of ArcGIS 9.2, replaced by normal Java casts.
MapServer theMapServer = (MapServer) obj; |
| Modifier and Type | Method and Description |
|---|---|
void |
activate()
Activates the object.
|
double |
computeDistance(java.lang.String mapName,
IPoint fromPoint,
IPoint toPoint,
int units)
Computes the distance between two points on the specified map.
|
double |
computeScale(IMapDescription mapDesc,
IImageDisplay mapDisplay)
Computes the scale of the specified map, at the given map extent, for an image with the given size.
|
void |
construct(IPropertySet props)
Two phase object construction.
|
void |
deactivate()
Deactivates the object.
|
boolean |
equals(java.lang.Object o)
Compare this object with another
|
IMapImage |
exportMapImage(IMapDescription mapDesc,
IImageDescription imageDesc)
Generates an image of the map, based on the given map description, and writes the image to a specified file on disk.
|
IMapServerFindResults |
find(IMapDescription mapDesc,
IImageDisplay mapImage,
java.lang.String searchString,
boolean contains,
java.lang.String searchFields,
int option,
ILongArray layerIDs)
Returns a collection of Map Server Find Result objects that contain the given search string.
|
IServerObjectExtension |
findExtensionByCLSID(java.lang.String cLSID)
Returns a server object extension found using a string representation of its class ID.
|
IServerObjectExtension |
findExtensionByTypeName(java.lang.String name)
Returns a server object extension found using its type name.
|
void |
fromMapPoints(IMapDescription mapDescription,
IImageDisplay mapDisplay,
IPointCollection mapPoints,
ILongArray[] screenXValues,
ILongArray[] screenYValues)
Converts a map coordinate to a screen location.
|
ICacheControlInfo |
getCacheControlInfo(java.lang.String mapName)
Gets the cache description information for a given map.
|
ICacheDescriptionInfo |
getCacheDescriptionInfo(java.lang.String mapName)
Gets the cache description information for a given map.
|
java.lang.String |
getCacheName(java.lang.String mapName,
int layerID)
Gets the cache name for a given layer within a map.
|
ICacheStorageInfo |
getCacheStorageInfo(java.lang.String mapName)
Gets the cache storage information.
|
static java.lang.String |
getClsid()
getClsid.
|
java.lang.String |
getConfigurationName()
Name of the server object configuration that defines the server object.
|
java.lang.Object |
getDataSource(java.lang.String mapName,
int layerID)
Get Data Source
|
java.lang.String |
getDefaultMapName()
Name of the document's active map (data frame).
|
java.lang.Object |
getDisplayDataSource(java.lang.String mapName,
int layerOrTableID)
Get Display Data Source
|
IPropertySet |
getDocumentInfo()
A set of name-value pairs for properties set for the map document (mxd only).
|
java.lang.String |
getFilePath()
The map document path.
|
com.esri.arcgis.interop.Dispatch |
getJintegraDispatch()
Gets a reference to a com.esri.arcgis.interop.Dispatch which can be used to access the COM object that support for this
interface indicates the implementing class references.
|
byte[] |
getLayerTile(java.lang.String mapName,
int layerID,
int level,
int row,
int column)
Gets a tile for a given tile location from a given layer.
|
byte[] |
getLayerTileEx(java.lang.String mapName,
int layerID,
int level,
int row,
int column,
int cacheFormat)
Gets a tile for a given tile location from a given layer.
|
IMapServerLegendInfos |
getLegendInfo(IMapDescription pMapDescription,
IImageDisplay pImageDisplay,
ILongArray layerIDs,
IMapServerLegendPatch patch,
IImageType imgType)
Returns a collection of Map Server Legend Info objects for the specified layers.
|
int |
getMapCount()
The number of maps (data frames) in the document.
|
java.lang.String |
getMapName(int index)
Name of the map (data frame) as indicated by the index.
|
byte[] |
getMapTile(java.lang.String mapName,
int level,
int row,
int column)
Gets a tile for a given tile location from a given map.
|
byte[] |
getMapTileEx(java.lang.String mapName,
int level,
int row,
int column,
int cacheFormat)
Gets a tile for a given tile location from a given map.
|
java.lang.String |
getPhysicalCacheDirectory()
The physical directory for cache files.
|
java.lang.String |
getPhysicalOutputDirectory()
The physical directory for output files.
|
java.lang.String |
getSchema()
This method returns the resource hierarchy of a REST based SOE.
|
IMapServerInfo |
getServerInfo(java.lang.String mapName)
Returns information about a map (data frame).
|
ISQLSyntaxInfo |
getSQLSyntaxInfo(java.lang.String mapName,
int layerID)
Returns the SQL syntax information for the specified layer.
|
int |
getSupportedImageReturnTypes()
The supported image return types for the map server.
|
ITileCacheInfo |
getTileCacheInfo(java.lang.String mapName)
Gets the cache configuration for a given map.
|
ITileImageInfo |
getTileImageInfo(java.lang.String mapName)
Gets the cache tile image information for a given map.
|
java.lang.String |
getTypeName()
Type of the server object (MapServer or GeocodeServer).
|
java.lang.String |
getVirtualCacheDirectory(java.lang.String mapName,
int layerID)
Gets the virtual cache directory for a given layer within a map.
|
byte[] |
handleBinaryRequest(byte[] request)
Handles a binary request.
|
byte[] |
handleBinaryRequest2(java.lang.String capabilities,
byte[] request)
Handles a binary request with explicit capabilities.
|
byte[] |
handleRESTRequest(java.lang.String capabilities,
java.lang.String resourceName,
java.lang.String operationName,
java.lang.String operationInput,
java.lang.String outputFormat,
java.lang.String requestProperties,
java.lang.String[] responseProperties)
Handles REST requests for SOE.
|
java.lang.String |
handleStringRequest(java.lang.String capabilities,
java.lang.String request)
Handles a SOAP string request.
|
int |
hashCode()
the hashcode for this object
|
boolean |
hasLayerCache(java.lang.String mapName,
int layerID)
Indicates if a given layer has a single tile cache.
|
boolean |
hasSingleFusedMapCache(java.lang.String mapName)
Indicates if a given map has a single fused map tile cache.
|
IMapServerIdentifyResults |
identify(IMapDescription mapDesc,
IImageDisplay mapImage,
IGeometry searchShape,
int tolerance,
int option,
ILongArray layerIDs)
Returns a collection of Map Server Identify Result objects at the given location.
|
void |
initLogging(ILog log)
Initializes an object with a log.
|
void |
interfaceSupportsErrorInfo(GUID riid)
interfaceSupportsErrorInfo
|
boolean |
isFixedScaleMap(java.lang.String mapName)
Indicates if a given map is a fixed scale map.
|
IQueryResult |
queryData(java.lang.String mapName,
IMapTableDescription pMapTableDescription,
IQueryFilter filter,
IQueryResultOptions options)
Returns a record set of rows that meet the query filter selection criteria for the specified table.
|
IRecordSet |
queryDataStatistics(java.lang.String mapName,
IMapTableDescription pTableDescription,
IStatisticsRequest pRequest,
IQueryFilter pQueryFilter)
Calculates aggregate statistics for one or more fields on a table or layer.
|
IImageResults |
queryRasterValue(java.lang.String mapName,
IMapTableDescription pTableDescription,
ILongArray rowIDs,
java.lang.String fieldName,
IImageType rasterValueType)
Returns the Raster content that meet the selection criteria for the specified dynamic layer.
|
IQueryResult |
queryRelatedRecords(java.lang.String mapName,
IMapTableDescription pTableDescription,
IFIDSet pFIDs,
IRelateDescription relateDescription)
Returns the IDs of the rows that meet the query filter selection criteria for the specified dynamic layer.
|
int |
queryRowCount(java.lang.String mapName,
IMapTableDescription pTableDescription,
IQueryFilter pFilter)
Returns the count of the rows that meet the query filter selection criteria for the specified table.
|
ILongArray |
queryRowIDs(java.lang.String mapName,
IMapTableDescription pTableDescription,
IQueryFilter pFilter)
Returns the IDs of the rows that meet the query filter selection criteria for the specified table.
|
void |
release()
Release this COM object reference
|
IPointCollection |
toMapPoints(IMapDescription mapDescription,
IImageDisplay mapDisplay,
ILongArray screenXValues,
ILongArray screenYValues)
Converts a screen location to a map coordinate.
|
void |
update(IPropertySet props)
Updates object's properties.
|
void |
validate(IPropertySet props)
Validates an object.
|
public MapServer()
throws java.io.IOException,
java.net.UnknownHostException
java.io.IOException - if there are interop problemsjava.net.UnknownHostException - if there are interop problemspublic MapServer(java.lang.Object obj)
throws java.io.IOException
MapServer theMapServer = (MapServer) obj;obj to MapServer.obj - an object returned from ArcGIS Engine or Serverjava.io.IOException - if there are interop problemspublic static java.lang.String getClsid()
public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic com.esri.arcgis.interop.Dispatch getJintegraDispatch()
getJintegraDispatch in interface com.esri.arcgis.interop.RemoteObjRefpublic void release()
release in interface com.esri.arcgis.interop.RemoteObjRefpublic IPropertySet getDocumentInfo() throws java.io.IOException, AutomationException
getDocumentInfo in interface IMapServerjava.io.IOException - If there are interop problems.AutomationException - If the ArcObject component throws an exception.public int getMapCount()
throws java.io.IOException,
AutomationException
getMapCount in interface IMapServerjava.io.IOException - If there are interop problems.AutomationException - If the ArcObject component throws an exception.public java.lang.String getMapName(int index)
throws java.io.IOException,
AutomationException
getMapName in interface IMapServerindex - The index (in)java.io.IOException - If there are interop problems.AutomationException - If the ArcObject component throws an exception.public java.lang.String getDefaultMapName()
throws java.io.IOException,
AutomationException
getDefaultMapName in interface IMapServerjava.io.IOException - If there are interop problems.AutomationException - If the ArcObject component throws an exception.public IMapServerInfo getServerInfo(java.lang.String mapName) throws java.io.IOException, AutomationException
getServerInfo in interface IMapServermapName - The mapName (in)java.io.IOException - If there are interop problems.AutomationException - If the ArcObject component throws an exception.public IMapImage exportMapImage(IMapDescription mapDesc, IImageDescription imageDesc) throws java.io.IOException, AutomationException
exportMapImage in interface IMapServermapDesc - A reference to a com.esri.arcgis.carto.IMapDescription (in)imageDesc - A reference to a com.esri.arcgis.carto.IImageDescription (in)java.io.IOException - If there are interop problems.AutomationException - If the ArcObject component throws an exception.public IMapServerFindResults find(IMapDescription mapDesc, IImageDisplay mapImage, java.lang.String searchString, boolean contains, java.lang.String searchFields, int option, ILongArray layerIDs) throws java.io.IOException, AutomationException
find in interface IMapServermapDesc - A reference to a com.esri.arcgis.carto.IMapDescription (in)mapImage - A reference to a com.esri.arcgis.carto.IImageDisplay (in)searchString - The searchString (in)contains - The contains (in)searchFields - The searchFields (in)option - A com.esri.arcgis.carto.esriFindOption constant (in)layerIDs - A reference to a com.esri.arcgis.system.ILongArray (in)java.io.IOException - If there are interop problems.AutomationException - If the ArcObject component throws an exception.public IMapServerIdentifyResults identify(IMapDescription mapDesc, IImageDisplay mapImage, IGeometry searchShape, int tolerance, int option, ILongArray layerIDs) throws java.io.IOException, AutomationException
identify in interface IMapServermapDesc - A reference to a com.esri.arcgis.carto.IMapDescription (in)mapImage - A reference to a com.esri.arcgis.carto.IImageDisplay (in)searchShape - A reference to a com.esri.arcgis.geometry.IGeometry (in)tolerance - The tolerance (in)option - A com.esri.arcgis.carto.esriIdentifyOption constant (in)layerIDs - A reference to a com.esri.arcgis.system.ILongArray (in)java.io.IOException - If there are interop problems.AutomationException - If the ArcObject component throws an exception.public double computeScale(IMapDescription mapDesc, IImageDisplay mapDisplay) throws java.io.IOException, AutomationException
computeScale in interface IMapServermapDesc - A reference to a com.esri.arcgis.carto.IMapDescription (in)mapDisplay - A reference to a com.esri.arcgis.carto.IImageDisplay (in)java.io.IOException - If there are interop problems.AutomationException - If the ArcObject component throws an exception.public double computeDistance(java.lang.String mapName,
IPoint fromPoint,
IPoint toPoint,
int units)
throws java.io.IOException,
AutomationException
computeDistance in interface IMapServermapName - The mapName (in)fromPoint - A reference to a com.esri.arcgis.geometry.IPoint (in)toPoint - A reference to a com.esri.arcgis.geometry.IPoint (in)units - A com.esri.arcgis.system.esriUnits constant (in)java.io.IOException - If there are interop problems.AutomationException - If the ArcObject component throws an exception.public IPointCollection toMapPoints(IMapDescription mapDescription, IImageDisplay mapDisplay, ILongArray screenXValues, ILongArray screenYValues) throws java.io.IOException, AutomationException
toMapPoints in interface IMapServermapDescription - A reference to a com.esri.arcgis.carto.IMapDescription (in)mapDisplay - A reference to a com.esri.arcgis.carto.IImageDisplay (in)screenXValues - A reference to a com.esri.arcgis.system.ILongArray (in)screenYValues - A reference to a com.esri.arcgis.system.ILongArray (in)java.io.IOException - If there are interop problems.AutomationException - If the ArcObject component throws an exception.public void fromMapPoints(IMapDescription mapDescription, IImageDisplay mapDisplay, IPointCollection mapPoints, ILongArray[] screenXValues, ILongArray[] screenYValues) throws java.io.IOException, AutomationException
fromMapPoints in interface IMapServermapDescription - A reference to a com.esri.arcgis.carto.IMapDescription (in)mapDisplay - A reference to a com.esri.arcgis.carto.IImageDisplay (in)mapPoints - A reference to a com.esri.arcgis.geometry.IPointCollection (in)screenXValues - A reference to a com.esri.arcgis.system.ILongArray (in/out: use single element array)screenYValues - A reference to a com.esri.arcgis.system.ILongArray (in/out: use single element array)java.io.IOException - If there are interop problems.AutomationException - If the ArcObject component throws an exception.public IMapServerLegendInfos getLegendInfo(IMapDescription pMapDescription, IImageDisplay pImageDisplay, ILongArray layerIDs, IMapServerLegendPatch patch, IImageType imgType) throws java.io.IOException, AutomationException
getLegendInfo in interface IMapServerpMapDescription - A reference to a com.esri.arcgis.carto.IMapDescription (in)pImageDisplay - A reference to a com.esri.arcgis.carto.IImageDisplay (in)layerIDs - A reference to a com.esri.arcgis.system.ILongArray (in)patch - A reference to a com.esri.arcgis.carto.IMapServerLegendPatch (in)imgType - A reference to a com.esri.arcgis.carto.IImageType (in)java.io.IOException - If there are interop problems.AutomationException - If the ArcObject component throws an exception.public ISQLSyntaxInfo getSQLSyntaxInfo(java.lang.String mapName, int layerID) throws java.io.IOException, AutomationException
getSQLSyntaxInfo in interface IMapServermapName - The mapName (in)layerID - The layerID (in)java.io.IOException - If there are interop problems.AutomationException - If the ArcObject component throws an exception.public int getSupportedImageReturnTypes()
throws java.io.IOException,
AutomationException
getSupportedImageReturnTypes in interface IMapServerjava.io.IOException - If there are interop problems.AutomationException - If the ArcObject component throws an exception.public IRecordSet queryDataStatistics(java.lang.String mapName, IMapTableDescription pTableDescription, IStatisticsRequest pRequest, IQueryFilter pQueryFilter) throws java.io.IOException, AutomationException
queryDataStatistics in interface IMapServermapName - The mapName (in)pTableDescription - A reference to a com.esri.arcgis.carto.IMapTableDescription (in)pRequest - A reference to a com.esri.arcgis.geodatabase.IStatisticsRequest (in)pQueryFilter - A reference to a com.esri.arcgis.geodatabase.IQueryFilter (in)java.io.IOException - If there are interop problems.AutomationException - If the ArcObject component throws an exception.public IQueryResult queryData(java.lang.String mapName, IMapTableDescription pMapTableDescription, IQueryFilter filter, IQueryResultOptions options) throws java.io.IOException, AutomationException
queryData in interface IMapServermapName - The mapName (in)pMapTableDescription - A reference to a com.esri.arcgis.carto.IMapTableDescription (in)filter - A reference to a com.esri.arcgis.geodatabase.IQueryFilter (in)options - A reference to a com.esri.arcgis.carto.IQueryResultOptions (in)java.io.IOException - If there are interop problems.AutomationException - If the ArcObject component throws an exception.public IQueryResult queryRelatedRecords(java.lang.String mapName, IMapTableDescription pTableDescription, IFIDSet pFIDs, IRelateDescription relateDescription) throws java.io.IOException, AutomationException
queryRelatedRecords in interface IMapServermapName - The mapName (in)pTableDescription - A reference to a com.esri.arcgis.carto.IMapTableDescription (in)pFIDs - A reference to a com.esri.arcgis.geodatabase.IFIDSet (in)relateDescription - A reference to a com.esri.arcgis.carto.IRelateDescription (in)java.io.IOException - If there are interop problems.AutomationException - If the ArcObject component throws an exception.public int queryRowCount(java.lang.String mapName,
IMapTableDescription pTableDescription,
IQueryFilter pFilter)
throws java.io.IOException,
AutomationException
queryRowCount in interface IMapServermapName - The mapName (in)pTableDescription - A reference to a com.esri.arcgis.carto.IMapTableDescription (in)pFilter - A reference to a com.esri.arcgis.geodatabase.IQueryFilter (in)java.io.IOException - If there are interop problems.AutomationException - If the ArcObject component throws an exception.public ILongArray queryRowIDs(java.lang.String mapName, IMapTableDescription pTableDescription, IQueryFilter pFilter) throws java.io.IOException, AutomationException
queryRowIDs in interface IMapServermapName - The mapName (in)pTableDescription - A reference to a com.esri.arcgis.carto.IMapTableDescription (in)pFilter - A reference to a com.esri.arcgis.geodatabase.IQueryFilter (in)java.io.IOException - If there are interop problems.AutomationException - If the ArcObject component throws an exception.public IImageResults queryRasterValue(java.lang.String mapName, IMapTableDescription pTableDescription, ILongArray rowIDs, java.lang.String fieldName, IImageType rasterValueType) throws java.io.IOException, AutomationException
queryRasterValue in interface IMapServermapName - The mapName (in)pTableDescription - A reference to a com.esri.arcgis.carto.IMapTableDescription (in)rowIDs - A reference to a com.esri.arcgis.system.ILongArray (in)fieldName - The fieldName (in)rasterValueType - A reference to a com.esri.arcgis.carto.IImageType (in)java.io.IOException - If there are interop problems.AutomationException - If the ArcObject component throws an exception.public java.lang.String getFilePath()
throws java.io.IOException,
AutomationException
getFilePath in interface IMapServerjava.io.IOException - If there are interop problems.AutomationException - If the ArcObject component throws an exception.public java.lang.String getPhysicalOutputDirectory()
throws java.io.IOException,
AutomationException
getPhysicalOutputDirectory in interface IMapServerjava.io.IOException - If there are interop problems.AutomationException - If the ArcObject component throws an exception.public java.lang.String getPhysicalCacheDirectory()
throws java.io.IOException,
AutomationException
getPhysicalCacheDirectory in interface IMapServerjava.io.IOException - If there are interop problems.AutomationException - If the ArcObject component throws an exception.public byte[] getMapTileEx(java.lang.String mapName,
int level,
int row,
int column,
int cacheFormat)
throws java.io.IOException,
AutomationException
getMapTileEx in interface ITiledMapServer2mapName - The mapName (in)level - The level (in)row - The row (in)column - The column (in)cacheFormat - The cacheFormat (in)java.io.IOException - If there are interop problems.AutomationException - If the ArcObject component throws an exception.public byte[] getLayerTileEx(java.lang.String mapName,
int layerID,
int level,
int row,
int column,
int cacheFormat)
throws java.io.IOException,
AutomationException
getLayerTileEx in interface ITiledMapServer2mapName - The mapName (in)layerID - The layerID (in)level - The level (in)row - The row (in)column - The column (in)cacheFormat - The cacheFormat (in)java.io.IOException - If there are interop problems.AutomationException - If the ArcObject component throws an exception.public ITileImageInfo getTileImageInfo(java.lang.String mapName) throws java.io.IOException, AutomationException
getTileImageInfo in interface ITiledMapServer2mapName - The mapName (in)java.io.IOException - If there are interop problems.AutomationException - If the ArcObject component throws an exception.public ICacheDescriptionInfo getCacheDescriptionInfo(java.lang.String mapName) throws java.io.IOException, AutomationException
getCacheDescriptionInfo in interface ITiledMapServer2mapName - The mapName (in)java.io.IOException - If there are interop problems.AutomationException - If the ArcObject component throws an exception.public ICacheControlInfo getCacheControlInfo(java.lang.String mapName) throws java.io.IOException, AutomationException
getCacheControlInfo in interface ITiledMapServer2mapName - The mapName (in)java.io.IOException - If there are interop problems.AutomationException - If the ArcObject component throws an exception.public boolean isFixedScaleMap(java.lang.String mapName)
throws java.io.IOException,
AutomationException
isFixedScaleMap in interface ITiledMapServermapName - The mapName (in)java.io.IOException - If there are interop problems.AutomationException - If the ArcObject component throws an exception.public boolean hasSingleFusedMapCache(java.lang.String mapName)
throws java.io.IOException,
AutomationException
hasSingleFusedMapCache in interface ITiledMapServermapName - The mapName (in)java.io.IOException - If there are interop problems.AutomationException - If the ArcObject component throws an exception.public ITileCacheInfo getTileCacheInfo(java.lang.String mapName) throws java.io.IOException, AutomationException
getTileCacheInfo in interface ITiledMapServermapName - The mapName (in)java.io.IOException - If there are interop problems.AutomationException - If the ArcObject component throws an exception.public byte[] getMapTile(java.lang.String mapName,
int level,
int row,
int column)
throws java.io.IOException,
AutomationException
getMapTile in interface ITiledMapServermapName - The mapName (in)level - The level (in)row - The row (in)column - The column (in)java.io.IOException - If there are interop problems.AutomationException - If the ArcObject component throws an exception.public boolean hasLayerCache(java.lang.String mapName,
int layerID)
throws java.io.IOException,
AutomationException
hasLayerCache in interface ITiledMapServermapName - The mapName (in)layerID - The layerID (in)java.io.IOException - If there are interop problems.AutomationException - If the ArcObject component throws an exception.public byte[] getLayerTile(java.lang.String mapName,
int layerID,
int level,
int row,
int column)
throws java.io.IOException,
AutomationException
getLayerTile in interface ITiledMapServermapName - The mapName (in)layerID - The layerID (in)level - The level (in)row - The row (in)column - The column (in)java.io.IOException - If there are interop problems.AutomationException - If the ArcObject component throws an exception.public java.lang.String getVirtualCacheDirectory(java.lang.String mapName,
int layerID)
throws java.io.IOException,
AutomationException
getVirtualCacheDirectory in interface ITiledMapServermapName - The mapName (in)layerID - The layerID (in)java.io.IOException - If there are interop problems.AutomationException - If the ArcObject component throws an exception.public java.lang.String getCacheName(java.lang.String mapName,
int layerID)
throws java.io.IOException,
AutomationException
getCacheName in interface ITiledMapServermapName - The mapName (in)layerID - The layerID (in)java.io.IOException - If there are interop problems.AutomationException - If the ArcObject component throws an exception.public ICacheStorageInfo getCacheStorageInfo(java.lang.String mapName) throws java.io.IOException, AutomationException
getCacheStorageInfo in interface ITiledMapServer3mapName - The mapName (in)java.io.IOException - If there are interop problems.AutomationException - If the ArcObject component throws an exception.public void construct(IPropertySet props) throws java.io.IOException, AutomationException
construct in interface IObjectConstructprops - A reference to a com.esri.arcgis.system.IPropertySet (in)java.io.IOException - If there are interop problems.AutomationException - If the ArcObject component throws an exception.public byte[] handleBinaryRequest(byte[] request)
throws java.io.IOException,
AutomationException
handleBinaryRequest in interface IRequestHandlerrequest - An unsigned byte (in)java.io.IOException - If there are interop problems.AutomationException - If the ArcObject component throws an exception.public java.lang.String handleStringRequest(java.lang.String capabilities,
java.lang.String request)
throws java.io.IOException,
AutomationException
handleStringRequest in interface IRequestHandlercapabilities - The capabilities (in)request - The request (in)java.io.IOException - If there are interop problems.AutomationException - If the ArcObject component throws an exception.public byte[] handleBinaryRequest2(java.lang.String capabilities,
byte[] request)
throws java.io.IOException,
AutomationException
handleBinaryRequest2 in interface IRequestHandler2capabilities - The capabilities (in)request - An unsigned byte (in)java.io.IOException - If there are interop problems.AutomationException - If the ArcObject component throws an exception.public void activate()
throws java.io.IOException,
AutomationException
activate in interface IObjectActivatejava.io.IOException - If there are interop problems.AutomationException - If the ArcObject component throws an exception.public void deactivate()
throws java.io.IOException,
AutomationException
deactivate in interface IObjectActivatejava.io.IOException - If there are interop problems.AutomationException - If the ArcObject component throws an exception.public void update(IPropertySet props) throws java.io.IOException, AutomationException
update in interface IObjectUpdateprops - A reference to a com.esri.arcgis.system.IPropertySet (in)java.io.IOException - If there are interop problems.AutomationException - If the ArcObject component throws an exception.public void initLogging(ILog log) throws java.io.IOException, AutomationException
initLogging in interface ILogSupportlog - A reference to a com.esri.arcgis.system.ILog (in)java.io.IOException - If there are interop problems.AutomationException - If the ArcObject component throws an exception.public void interfaceSupportsErrorInfo(GUID riid) throws java.io.IOException, AutomationException
interfaceSupportsErrorInfo in interface ISupportErrorInforiid - A Structure: com.esri.arcgis.support.ms.stdole.GUID (in)java.io.IOException - If there are interop problems.AutomationException - If the ArcObject component throws an exception.public java.lang.String getConfigurationName()
throws java.io.IOException,
AutomationException
getConfigurationName in interface IServerObjectjava.io.IOException - If there are interop problems.AutomationException - If the ArcObject component throws an exception.public java.lang.String getTypeName()
throws java.io.IOException,
AutomationException
getTypeName in interface IServerObjectjava.io.IOException - If there are interop problems.AutomationException - If the ArcObject component throws an exception.public IServerObjectExtension findExtensionByCLSID(java.lang.String cLSID) throws java.io.IOException, AutomationException
findExtensionByCLSID in interface IServerObjectExtensionManagercLSID - The cLSID (in)java.io.IOException - If there are interop problems.AutomationException - If the ArcObject component throws an exception.public IServerObjectExtension findExtensionByTypeName(java.lang.String name) throws java.io.IOException, AutomationException
findExtensionByTypeName in interface IServerObjectExtensionManagername - The name (in)java.io.IOException - If there are interop problems.AutomationException - If the ArcObject component throws an exception.public void validate(IPropertySet props) throws java.io.IOException, AutomationException
validate in interface IObjectValidateprops - A reference to a com.esri.arcgis.system.IPropertySet (in)java.io.IOException - If there are interop problems.AutomationException - If the ArcObject component throws an exception.public java.lang.Object getDataSource(java.lang.String mapName,
int layerID)
throws java.io.IOException,
AutomationException
getDataSource in interface IMapServerDataAccessmapName - The mapName (in)layerID - The layerID (in)java.io.IOException - If there are interop problems.AutomationException - If the ArcObject component throws an exception.public java.lang.Object getDisplayDataSource(java.lang.String mapName,
int layerOrTableID)
throws java.io.IOException,
AutomationException
getDisplayDataSource in interface IMapServerDataAccessmapName - The mapName (in)layerOrTableID - The layerOrTableID (in)java.io.IOException - If there are interop problems.AutomationException - If the ArcObject component throws an exception.public byte[] handleRESTRequest(java.lang.String capabilities,
java.lang.String resourceName,
java.lang.String operationName,
java.lang.String operationInput,
java.lang.String outputFormat,
java.lang.String requestProperties,
java.lang.String[] responseProperties)
throws java.io.IOException,
AutomationException
This method is invoked by ArcGIS Server's REST handler, which intercepts client's request (in URL form), parses it and passes it on to this method in form of parameter values.
The REST SOE developer must add logic to use these parameter values to determine which resource/operation is being requested and accordingly handle these requests and generate responses in the output format indicated by the "outputFormat" parameter. For more information on developing REST SOEs, please consult the Java ArcObjects Developer Guide.
Developer doc: Developing extensions > Server Object Extensions > SOE Web Services > REST Web Services > Developing SOE REST Web Services
Samples: Samples > Server Object Extensions section
handleRESTRequest in interface IRESTRequestHandlercapabilities - The capabilities supported by the SOE. An admin can choose which
capabilities are enabled on a particular SOE (in ArcGIS Manager or ArcCatalog), based on certain criteria such as security roles.
This list of allowed capabilities is then sent to this method, at runtime, as a comma separated list. (in)resourceName - Name of the resource being addressed. If empty, its assumed
that root resource is being addressed. (in)operationName - Name of the operation being invoked. If empty, description of
resource is returned. (in)operationInput - Input parameters, in form of comma separated list, to the operation specified by operationName parameter. (in)outputFormat - OutputFormat of operation. Possible formats are JSON, HTML, AMF, etc. (in)requestProperties - The requestProperties (in)responseProperties - The responseProperties (out)java.io.IOException - If there are interop problems.AutomationException - If the ArcObject component throws an exception.public java.lang.String getSchema()
throws java.io.IOException,
AutomationException
For an SOE that has a root resource (called "root") with one operation ("operation0"), and 2 sub-resources with one operation each ("operation1" and "operation2" respectively), the schema would look like:
{
"name": "MyRESTSOE",
"description": "My REST SOE with 3 resources and 1 operation each.",
"isCollection": false,
"operations": [
{
"name": "operation0",
"parameters": ["param01"],
"supportedOutputFormats": ["json"]
}
],
"resources": [
{
"name": "subresource1",
"description": "Sub Resource 1",
"isCollection": true,
"operations": [
{
"name": "operation1",
"parameters": ["param10", "param11"],
"supportedOutputFormats": ["json"]
}
]
},
{
"name": "subresource2",
"description": "Sub Resource 2",
"isCollection": true,
"operations": [
{
"name": "operation2",
"parameters": ["param20", "param21"],
"supportedOutputFormats": ["json"]
}
]
}
]
}
getSchema in interface IRESTRequestHandlerjava.io.IOException - If there are interop problems.AutomationException - If the ArcObject component throws an exception.