Esri Geoportal Server
1.0

com.esri.gpt.catalog.arcims
Class ImsClient

java.lang.Object
  extended by com.esri.gpt.catalog.arcims.ImsClient
Direct Known Subclasses:
ImsHttpClient

public abstract class ImsClient
extends Object

Super class for an ArcIMS client.


Constructor Summary
ImsClient()
          Default constructor.
 
Method Summary
 String getAxlRequest()
          Gets the ArcXML request.
 String getAxlResponse()
          Gets the ArcXML response.
 int getResponseCode()
          Gets the HTTP response code.
 String getResponseCodeText()
          Gets the HTTP response code text.
 int getTimeoutMillisecs()
          Gets the timeout in milli-seconds.
abstract  void sendRequest()
          Sends the request.
 void setAxlRequest(String axl)
          Sets the ArcXML request.
protected  void setAxlResponse(String axl)
          Sets the ArcXML response.
protected  void setResponseCode(int responseCode)
          Sets the HTTP response code.
protected  void setResponseCodeText(String responseCodeText)
          Sets the HTTP response code text.
 void setTimeoutMillisecs(int millisecs)
          Sets the timeout in milli-seconds.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ImsClient

public ImsClient()
Default constructor.

Method Detail

getAxlRequest

public String getAxlRequest()
Gets the ArcXML request.

Returns:
the ArcXML request

setAxlRequest

public void setAxlRequest(String axl)
Sets the ArcXML request.

Parameters:
axl - the ArcXML request

getAxlResponse

public String getAxlResponse()
Gets the ArcXML response.

Returns:
the ArcXML response

setAxlResponse

protected void setAxlResponse(String axl)
Sets the ArcXML response.

Parameters:
axl - the ArcXML response

getResponseCode

public int getResponseCode()
Gets the HTTP response code.

Returns:
the HTTP response code

setResponseCode

protected void setResponseCode(int responseCode)
Sets the HTTP response code.

Parameters:
responseCode - the HTTP response code

getResponseCodeText

public String getResponseCodeText()
Gets the HTTP response code text.

Returns:
the HTTP response code text

setResponseCodeText

protected void setResponseCodeText(String responseCodeText)
Sets the HTTP response code text.

Parameters:
responseCodeText - the HTTP response code text

getTimeoutMillisecs

public int getTimeoutMillisecs()
Gets the timeout in milli-seconds.
0 indicates no timeout.

Returns:
the timeout

setTimeoutMillisecs

public void setTimeoutMillisecs(int millisecs)
Sets the timeout in milli-seconds.
0 indicates no timeout.

Parameters:
millisecs - the timeout

sendRequest

public abstract void sendRequest()
                          throws IOException
Sends the request.

Throws:
IOException - if a communication exception occurs

Esri Geoportal Server
1.0

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