public class JarRetriever extends URLRetriever
JarURLConnection
for a full description
of jar URLs.beginTime, byteBuffer, connection, connectTimeout, contentLength, contentLengthRead, contentType, endTime, expiration, EXTRACT_ZIP_ENTRY, postProcessor, readTimeout, staleRequestLimit, state, submitTime, url
RETRIEVER_STATE_CONNECTING, RETRIEVER_STATE_ERROR, RETRIEVER_STATE_INTERRUPTED, RETRIEVER_STATE_NOT_STARTED, RETRIEVER_STATE_READING, RETRIEVER_STATE_STARTED, RETRIEVER_STATE_SUCCESSFUL
Constructor and Description |
---|
JarRetriever(URL url,
RetrievalPostProcessor postProcessor) |
Modifier and Type | Method and Description |
---|---|
protected ByteBuffer |
doRead(URLConnection connection) |
int |
getResponseCode() |
String |
getResponseMessage() |
call, configureSSLContext, createRetriever, end, equals, getBeginTime, getBuffer, getConnection, getConnectTimeout, getContentLength, getContentLengthRead, getContentType, getEndTime, getExpiration, getExpirationTime, getName, getPostProcessor, getReadTimeout, getStaleRequestLimit, getState, getSubmitTime, getUrl, getURL, hashCode, interrupted, openConnection, read, readNonSpecificStream, readNonSpecificStreamUnknownLength, readZipStream, setBeginTime, setConnectTimeout, setContentLengthRead, setEndTime, setReadTimeout, setStaleRequestLimit, setState, setSubmitTime, toString
onMessage, propertyChange
addPropertyChangeListener, addPropertyChangeListener, clearList, copy, firePropertyChange, firePropertyChange, getBooleanValue, getBooleanValue, getChangeSupport, getDoubleValue, getDoubleValue, getEntries, getIntegerValue, getIntegerValue, getLongValue, getLongValue, getRestorableStateForAVPair, getStringValue, getStringValue, getStringValue, getValue, getValues, hasKey, removeKey, removePropertyChangeListener, removePropertyChangeListener, setValue, setValues
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
addPropertyChangeListener, addPropertyChangeListener, clearList, copy, firePropertyChange, firePropertyChange, getEntries, getStringValue, getValue, getValues, hasKey, removeKey, removePropertyChangeListener, removePropertyChangeListener, setValue, setValues
propertyChange
onMessage
public JarRetriever(URL url, RetrievalPostProcessor postProcessor)
protected ByteBuffer doRead(URLConnection connection) throws Exception
doRead
in class URLRetriever
connection
- the connection to read from.Exception
- if connection
is null or an exception occurs during reading.IllegalArgumentException
- if connection
is nullpublic int getResponseCode()
public String getResponseMessage()