public class CatalogConnection extends Object
Modifier and Type | Field and Description |
---|---|
protected int |
connectTimeout |
protected int |
readTimeout |
protected String |
serviceUrl |
Constructor and Description |
---|
CatalogConnection(String serviceUrl) |
Modifier and Type | Method and Description |
---|---|
int |
getConnectTimeout() |
int |
getReadTimeout() |
GetRecordsResponse |
getRecords(GetRecordsRequest request) |
String |
getServiceUrl() |
protected GetRecordsResponse |
parseResponse(InputStream in) |
protected GetRecordsResponse |
sendGetRecordsRequest(GetRecordsRequest request,
HttpURLConnection connection) |
void |
setConnectTimeout(int timeout) |
void |
setReadTimeout(int timeout) |
protected int connectTimeout
protected int readTimeout
protected String serviceUrl
public CatalogConnection(String serviceUrl)
public int getConnectTimeout()
public int getReadTimeout()
public GetRecordsResponse getRecords(GetRecordsRequest request) throws IOException, XMLStreamException
IOException
XMLStreamException
public String getServiceUrl()
protected GetRecordsResponse parseResponse(InputStream in) throws XMLStreamException
XMLStreamException
protected GetRecordsResponse sendGetRecordsRequest(GetRecordsRequest request, HttpURLConnection connection) throws IOException, XMLStreamException
IOException
XMLStreamException
public void setConnectTimeout(int timeout)
public void setReadTimeout(int timeout)