|
Esri Geoportal Server 1.0
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.esri.gpt.catalog.arcims.ImsClient com.esri.gpt.catalog.arcims.ImsHttpClient
public class ImsHttpClient
Provides a basic client for out-bound ArcIMS HTTP communication.
Constructor Summary | |
---|---|
ImsHttpClient()
Default constructor. |
Method Summary | |
---|---|
Credentials |
getCredentials()
Gets the credentials for the user. |
String |
getResponseContentEncoding()
Gets the response content encoding. |
long |
getResponseContentLength()
Gets the response content length. |
String |
getResponseContentType()
Gets the response content type. |
String |
getUrl()
Gets the server url. |
protected StringBuffer |
readCharacters(InputStream strm)
Fully reads the characters from an InputStream. |
protected void |
resetResponse()
Resets the response. |
void |
sendRequest()
Sends the HTTP request. |
void |
setCredentials(Credentials credentials)
Sets the credentials for the user. |
protected void |
setResponseContentEncoding(String encoding)
Sets the response content encoding. |
protected void |
setResponseContentLength(long length)
Sets the response content length. |
protected void |
setResponseContentType(String type)
Sets the response content type. |
void |
setUrl(String url)
Sets the server url. |
Methods inherited from class com.esri.gpt.catalog.arcims.ImsClient |
---|
getAxlRequest, getAxlResponse, getResponseCode, getResponseCodeText, getTimeoutMillisecs, setAxlRequest, setAxlResponse, setResponseCode, setResponseCodeText, setTimeoutMillisecs |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ImsHttpClient()
Method Detail |
---|
public Credentials getCredentials()
public void setCredentials(Credentials credentials)
credentials
- the credentialspublic String getResponseContentEncoding()
protected void setResponseContentEncoding(String encoding)
encoding
- the response content encodingpublic long getResponseContentLength()
protected void setResponseContentLength(long length)
length
- the response content lengthpublic String getResponseContentType()
protected void setResponseContentType(String type)
type
- the response content typepublic String getUrl()
public void setUrl(String url)
url
- the server urlprotected StringBuffer readCharacters(InputStream strm) throws IOException
strm
- the InputStream
IOException
- if an exception occursprotected void resetResponse()
public void sendRequest() throws MalformedURLException, IOException
sendRequest
in class ImsClient
MalformedURLException
- if the URL was not properly specified
IOException
- if a communication exception occurs
|
Esri Geoportal Server 1.0
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |