|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.esri.arcgis.carto.WMSImageServer
public class WMSImageServer
The WMS Server Object Extension for Image Service.
This object is new at ArcGIS 9.3.
WMSImageServer is a special case of WMSServer for an ArcGIS ImageServer enabled with WMS capability.
WMSImageServer
,
Serialized FormField Summary |
---|
Fields inherited from interface com.esri.arcgis.system.IObjectActivate |
---|
IID, IIDe3b78022_143e_4e61_9099_ed319ec061e7, xxDummy |
Constructor Summary | |
---|---|
WMSImageServer()
Constructs a WMSImageServer using ArcGIS Engine. |
|
WMSImageServer(Object obj)
Deprecated. As of ArcGIS 9.2, replaced by normal Java casts. WMSImageServer theWMSImageServer = (WMSImageServer) obj; |
Method Summary | |
---|---|
void |
activate()
Activates the object. |
void |
construct(IPropertySet props)
Two phase object construction. |
void |
deactivate()
Deactivates the object. |
boolean |
equals(Object o)
Compare this object with another |
static String |
getClsid()
getClsid. |
byte[] |
getData(String capabilities,
String request,
String[] pMimeType)
Handle WMS Server binary request. |
String |
getToPost(String sGet)
Handle translation from Get to Post. |
byte[] |
handleStringWebRequest(int httpMethod,
String requestURL,
String queryString,
String capabilities,
String requestData,
String[] responseContentType,
int[] respDataType)
Handles a request with explicit capabilities. |
int |
hashCode()
the hashcode for this object |
void |
init(IServerObjectHelper pSOH)
Initializes and starts the server object specified by the IServerObjectHelper reference. |
void |
initLogging(ILog log)
Initializes an object with a log. |
void |
interfaceSupportsErrorInfo(GUID riid)
interfaceSupportsErrorInfo |
void |
setParameters(String name,
String value)
Handle setting WMS Server parameters. |
void |
shutdown()
Stops the server object specified by the IServerObjectHelper reference. |
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 |
---|
public WMSImageServer() throws IOException, UnknownHostException
IOException
- if there are interop problems
UnknownHostException
- if there are interop problemspublic WMSImageServer(Object obj) throws IOException
WMSImageServer theWMSImageServer = (WMSImageServer) obj;
obj
to WMSImageServer
.
obj
- an object returned from ArcGIS Engine or Server
IOException
- if there are interop problemsMethod Detail |
---|
public static String getClsid()
public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
public void init(IServerObjectHelper pSOH) throws IOException, AutomationException
init
in interface IServerObjectExtension
pSOH
- A reference to a com.esri.arcgis.server.IServerObjectHelper (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void shutdown() throws IOException, AutomationException
shutdown
in interface IServerObjectExtension
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void construct(IPropertySet props) throws IOException, AutomationException
construct
in interface IObjectConstruct
props
- A reference to a com.esri.arcgis.system.IPropertySet (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void activate() throws IOException, AutomationException
activate
in interface IObjectActivate
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void deactivate() throws IOException, AutomationException
deactivate
in interface IObjectActivate
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void initLogging(ILog log) throws IOException, AutomationException
initLogging
in interface ILogSupport
log
- A reference to a com.esri.arcgis.system.ILog (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public String getToPost(String sGet) throws IOException, AutomationException
Convert a WMS request string (query string used in WMS HTTP GET request mode) to an WMS request XML (XML used in WMS HTTP POST request mode)
According to OGC WMS Implementation Specification, A WMS Server should be able to accept WMS request in both HTTP GET (requests are WMS URL appended by key-value pairs) mode and HTTP Post mode (requests are XML whose DTD or shchema are defined in WMS Specification). To simplify the logic of WMS Server Object Extension, all WMS requests will be converted to XML before they reach the server object, so method GetToPost() is used whenever a WMS request in HTTP GET mode is received.
getToPost
in interface IWMSServer
sGet
- The sGet (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public byte[] getData(String capabilities, String request, String[] pMimeType) throws IOException, AutomationException
Parse WMS requests and get responses from Server Object.
Responses can either be normal XML document containing meta information, feature information and exception information, or images
getData
in interface IWMSServer
capabilities
- The capabilities (in)request
- The request (in)pMimeType
- The pMimeType (out: use single element array)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setParameters(String name, String value) throws IOException, AutomationException
Set the parameters of WMS Server Object Extension.
Multiple users will be able to use a same Server Object to provide WMS service, but they may provide different information for their own WMS service, for example, "organization info", "contact info", "Style URL". They can use setParameters() method to populate these information.
setParameters
in interface IWMSServer
name
- The name (in)value
- The value (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public byte[] handleStringWebRequest(int httpMethod, String requestURL, String queryString, String capabilities, String requestData, String[] responseContentType, int[] respDataType) throws IOException, AutomationException
handleStringWebRequest
in interface IWebRequestHandler
httpMethod
- A com.esri.arcgis.system.esriHttpMethod constant (in)requestURL
- The requestURL (in)queryString
- The queryString (in)capabilities
- The capabilities (in)requestData
- The requestData (in)responseContentType
- The responseContentType (out: use single element array)respDataType
- A com.esri.arcgis.system.esriWebResponseDataType constant (out: use single element array)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void interfaceSupportsErrorInfo(GUID riid) throws IOException, AutomationException
Indicates whether the interface supports IErrorInfo.
interfaceSupportsErrorInfo
in interface ISupportErrorInfo
riid
- A Structure: com.esri.arcgis.support.ms.stdole.GUID (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |