|
ArcGIS Server Geoportal extension 10
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.esri.gpt.server.csw.client.CswClient
public class CswClient
CswClient class is used to submit CSW search request. CswClient is a wrapper class of .NET HttpWebRequest and HttpWebResponse. It basically submits a HTTP request then return a text response.
| Field Summary | |
|---|---|
static int |
DEFAULT_REQUEST_TIMEOUT
The REQUES Timeout parameter. |
| Constructor Summary | |
|---|---|
CswClient()
Constructor |
|
| Method Summary | |
|---|---|
String |
encodePostbody(String postbody)
Encode PostBody Encode special characters (such as %, space, <, >, \, and &) to percent values. |
int |
getConnectTimeout()
Gets the timeout. |
int |
getReadTimeout()
Gets the timeout. |
static String |
replaceSubString(String source,
String pattern,
String replace)
Replace sub string. |
void |
setConnectTimeout(int timeout)
Sets the timeout. |
void |
setReadTimeout(int timeout)
Sets the timeout. |
InputStream |
submitHttpRequest(String method,
String url,
String postdata)
Submit HTTP Request |
InputStream |
submitHttpRequest(String method,
String urlString,
String postdata,
String usr,
String pwd)
Submit HTTP Request (Both GET and POST). |
Element |
submitHttpRequestAndGetDom(String method,
String urlString,
String postdata,
String usr,
String pwd)
submit HTTP Request (Both GET and POST). |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static int DEFAULT_REQUEST_TIMEOUT
| Constructor Detail |
|---|
public CswClient()
| Method Detail |
|---|
public int getConnectTimeout()
public void setConnectTimeout(int timeout)
timeout - the new timeoutpublic int getReadTimeout()
public void setReadTimeout(int timeout)
timeout - the new timeoutpublic String encodePostbody(String postbody)
postbody - Text to be encoded
public static String replaceSubString(String source,
String pattern,
String replace)
source - the sourcepattern - the patternreplace - the replace
public InputStream submitHttpRequest(String method,
String url,
String postdata)
throws IOException
method - HTTP Method. for example "POST", "GET"url - URL to send HTTP Request topostdata - Data to be posted
IOException
public InputStream submitHttpRequest(String method,
String urlString,
String postdata,
String usr,
String pwd)
throws IOException
method - HTTP Method. for example "POST", "GET"urlString - URL to send HTTP Request topostdata - Data to be postedusr - Usernamepwd - Password
IOException - in IOException
SocketTimeoutException - if connect or read timeout
public Element submitHttpRequestAndGetDom(String method,
String urlString,
String postdata,
String usr,
String pwd)
throws IOException,
ParserConfigurationException,
SAXException
method - urlString - postdata - usr - pwd -
IOException
ParserConfigurationException
SAXException
|
ArcGIS Server Geoportal extension 10
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||