gov.nasa.worldwind
Class URLRetriever
java.lang.Object
gov.nasa.worldwind.AVListImpl
gov.nasa.worldwind.WWObjectImpl
gov.nasa.worldwind.URLRetriever
- All Implemented Interfaces:
- AVList, Retriever, WWObject, PropertyChangeListener, Callable<Retriever>, EventListener
- Direct Known Subclasses:
- HTTPRetriever
public abstract class URLRetriever
- extends WWObjectImpl
- implements Retriever
| Methods inherited from class gov.nasa.worldwind.AVListImpl |
addPropertyChangeListener, addPropertyChangeListener, copy, firePropertyChange, firePropertyChange, getStringValue, getValue, hasKey, propertyChange, removeKey, removePropertyChangeListener, removePropertyChangeListener, setValue |
| Methods inherited from interface gov.nasa.worldwind.AVList |
addPropertyChangeListener, addPropertyChangeListener, copy, firePropertyChange, firePropertyChange, getStringValue, getValue, hasKey, removeKey, removePropertyChangeListener, removePropertyChangeListener, setValue |
URLRetriever
public URLRetriever(URL url,
RetrievalPostProcessor postProcessor)
- Parameters:
url - postProcessor -
- Throws:
IllegalArgumentException - if url or postProcessor is null
call
public final Retriever call()
throws Exception
- Specified by:
call in interface Callable<Retriever>
- Throws:
Exception
doRead
protected ByteBuffer doRead(URLConnection connection)
throws Exception
- Parameters:
connection -
- Returns:
-
- Throws:
Exception
IllegalArgumentException - if connection is null
equals
public boolean equals(Object o)
- Overrides:
equals in class Object
getBeginTime
public long getBeginTime()
- Specified by:
getBeginTime in interface Retriever
getBuffer
public final ByteBuffer getBuffer()
- Specified by:
getBuffer in interface Retriever
getConnection
protected final URLConnection getConnection()
getConnectTimeout
public final int getConnectTimeout()
getContentLength
public final int getContentLength()
- Specified by:
getContentLength in interface Retriever
getContentLengthRead
public final int getContentLengthRead()
- Specified by:
getContentLengthRead in interface Retriever
getContentType
public final String getContentType()
- Specified by:
getContentType in interface Retriever
getEndTime
public long getEndTime()
- Specified by:
getEndTime in interface Retriever
getName
public final String getName()
- Specified by:
getName in interface Retriever
getPostProcessor
public final RetrievalPostProcessor getPostProcessor()
getState
public final String getState()
- Specified by:
getState in interface Retriever
getSubmitTime
public long getSubmitTime()
- Specified by:
getSubmitTime in interface Retriever
getUrl
public final URL getUrl()
hashCode
public int hashCode()
- Overrides:
hashCode in class Object
setBeginTime
public void setBeginTime(long beginTime)
- Specified by:
setBeginTime in interface Retriever
setConnectTimeout
public final void setConnectTimeout(int connectTimeout)
- Parameters:
connectTimeout -
- Throws:
IllegalArgumentException - if connectTimeOut is less than zero
setContentLengthRead
protected void setContentLengthRead(int length)
setEndTime
public void setEndTime(long endTime)
- Specified by:
setEndTime in interface Retriever
setSubmitTime
public void setSubmitTime(long submitTime)
- Specified by:
setSubmitTime in interface Retriever
toString
public String toString()
- Overrides:
toString in class Object