org.openstreetmap.josm.io
Class OsmServerHistoryReader

java.lang.Object
  extended by org.openstreetmap.josm.io.OsmConnection
      extended by org.openstreetmap.josm.io.OsmServerReader
          extended by org.openstreetmap.josm.io.OsmServerHistoryReader

public class OsmServerHistoryReader
extends OsmServerReader

Reads the history of an OsmPrimitive from the OSM API server.


Field Summary
private  long id
           
private  OsmPrimitiveType primitiveType
           
 
Fields inherited from class org.openstreetmap.josm.io.OsmConnection
activeConnection, cancel, oauthParameters
 
Constructor Summary
OsmServerHistoryReader(OsmPrimitiveType type, long id)
          constructor
 
Method Summary
 HistoryDataSet parseHistory(ProgressMonitor progressMonitor)
          Fetches the history from the OSM API and parses it
 DataSet parseOsm(ProgressMonitor progressMonitor)
          don't use - not implemented!
 
Methods inherited from class org.openstreetmap.josm.io.OsmServerReader
getBaseUrl, getInputStream, getInputStreamRaw, isDoAuthenticate, parseOsmBzip2, parseOsmChange, parseOsmChangeBzip2, parseOsmChangeGzip, parseOsmGzip, parseRawGps, setDoAuthenticate
 
Methods inherited from class org.openstreetmap.josm.io.OsmConnection
addAuth, addBasicAuthorizationHeader, addOAuthAuthorizationHeader, cancel, isCanceled
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

primitiveType

private OsmPrimitiveType primitiveType

id

private long id
Constructor Detail

OsmServerHistoryReader

public OsmServerHistoryReader(OsmPrimitiveType type,
                              long id)
                       throws java.lang.IllegalArgumentException
constructor

Parameters:
type - the type of the primitive whose history is to be fetched from the server. Must not be null.
id - the id of the primitive
Throws:
java.lang.IllegalArgumentException - thrown, if type is null
Method Detail

parseOsm

public DataSet parseOsm(ProgressMonitor progressMonitor)
                 throws OsmTransferException
don't use - not implemented!

Specified by:
parseOsm in class OsmServerReader
Throws:
OsmTransferException

parseHistory

public HistoryDataSet parseHistory(ProgressMonitor progressMonitor)
                            throws OsmTransferException
Fetches the history from the OSM API and parses it

Returns:
the data set with the parsed history data
Throws:
OsmTransferException - thrown, if an exception occurs


JOSM