edu.sc.seis.seisFile.fdsnws
Class AbstractFDSNQuerier
java.lang.Object
edu.sc.seis.seisFile.fdsnws.AbstractFDSNQuerier
- Direct Known Subclasses:
- FDSNDataSelectQuerier, FDSNEventQuerier, FDSNStationQuerier
public abstract class AbstractFDSNQuerier
- extends java.lang.Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
connectionUri
protected java.net.URI connectionUri
connectTimeout
protected int connectTimeout
readTimeout
protected int readTimeout
DEFAULT_CONNECT_TIMEOUT
public static int DEFAULT_CONNECT_TIMEOUT
DEFAULT_READ_TIMEOUT
public static int DEFAULT_READ_TIMEOUT
AbstractFDSNQuerier
public AbstractFDSNQuerier()
processConnection
protected void processConnection(java.net.URLConnection urlConn)
throws java.io.IOException
- Throws:
java.io.IOException
validate
protected void validate(javax.xml.stream.XMLStreamReader reader,
java.net.URL schemaURL)
throws org.xml.sax.SAXException,
java.io.IOException
- Throws:
org.xml.sax.SAXException
java.io.IOException
outputRaw
public void outputRaw(java.io.InputStream in,
java.io.OutputStream out)
throws java.io.IOException
- Throws:
java.io.IOException
isError
public boolean isError()
getErrorMessage
public java.lang.String getErrorMessage()
isEmpty
public boolean isEmpty()
getInputStream
public java.io.InputStream getInputStream()
getConnectionUri
public java.net.URI getConnectionUri()
checkConnectionInitiated
public void checkConnectionInitiated()
getReader
public javax.xml.stream.XMLEventReader getReader()
throws javax.xml.stream.XMLStreamException
- Throws:
javax.xml.stream.XMLStreamException
extractErrorMessage
public static java.lang.String extractErrorMessage(java.net.HttpURLConnection conn)
setUserAgent
public void setUserAgent(java.lang.String userAgent)
getUserAgent
public java.lang.String getUserAgent()
getResponseCode
public int getResponseCode()
setConnectTimeout
public void setConnectTimeout(int milliseconds)
- set the HttpConnection connectionTimeout in milliseconds.
setReadTimeout
public void setReadTimeout(int milliseconds)
- set the HttpConnection readTimeout in milliseconds.
getConnectTimeout
public int getConnectTimeout()
getReadTimeout
public int getReadTimeout()