de.fuberlin.wiwiss.marbles.loading
Class DereferencingResult

java.lang.Object
  extended by de.fuberlin.wiwiss.marbles.loading.DereferencingResult

public class DereferencingResult
extends java.lang.Object

The dereferencing result contains informations about the success or failure of a DereferencingTasks execution.

Author:
Tobias Gauß Adapted to the Apache HTTP Client and Sesame by Christian Becker

Field Summary
static int STATUS_MALFORMED_URL
           
static int STATUS_NEW_URIS_FOUND
           
static int STATUS_OK
           
static int STATUS_PARSING_FAILED
           
static int STATUS_UNABLE_TO_CONNECT
           
 
Constructor Summary
DereferencingResult(DereferencingTask task, int resultCode, org.apache.commons.httpclient.HttpMethod method, org.openrdf.model.Graph resultData, java.lang.Exception resultException)
           
DereferencingResult(DereferencingTask task, int resultCode, java.util.List urilist)
           
 
Method Summary
 java.lang.String getErrorMessage()
           
 org.apache.commons.httpclient.HttpMethod getMethod()
           
 int getResultCode()
           
 org.openrdf.model.Graph getResultData()
           
 java.lang.Exception getResultException()
           
 DereferencingTask getTask()
           
 java.lang.String getURI()
           
 java.util.List getUriList()
           
 boolean isSuccess()
           
 void setMethod(org.apache.commons.httpclient.HttpMethod method)
           
 void setResultCode(int resultCode)
           
 void setResultData(org.openrdf.model.Graph resultData)
           
 void setResultException(java.lang.Exception resultException)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

STATUS_OK

public static final int STATUS_OK
See Also:
Constant Field Values

STATUS_PARSING_FAILED

public static final int STATUS_PARSING_FAILED
See Also:
Constant Field Values

STATUS_MALFORMED_URL

public static final int STATUS_MALFORMED_URL
See Also:
Constant Field Values

STATUS_UNABLE_TO_CONNECT

public static final int STATUS_UNABLE_TO_CONNECT
See Also:
Constant Field Values

STATUS_NEW_URIS_FOUND

public static final int STATUS_NEW_URIS_FOUND
See Also:
Constant Field Values
Constructor Detail

DereferencingResult

public DereferencingResult(DereferencingTask task,
                           int resultCode,
                           org.apache.commons.httpclient.HttpMethod method,
                           org.openrdf.model.Graph resultData,
                           java.lang.Exception resultException)

DereferencingResult

public DereferencingResult(DereferencingTask task,
                           int resultCode,
                           java.util.List urilist)
Method Detail

getTask

public DereferencingTask getTask()

getResultCode

public int getResultCode()

getResultData

public org.openrdf.model.Graph getResultData()

setResultData

public void setResultData(org.openrdf.model.Graph resultData)

getURI

public java.lang.String getURI()

getErrorMessage

public java.lang.String getErrorMessage()

isSuccess

public boolean isSuccess()

getUriList

public java.util.List getUriList()

getMethod

public org.apache.commons.httpclient.HttpMethod getMethod()

setMethod

public void setMethod(org.apache.commons.httpclient.HttpMethod method)

getResultException

public java.lang.Exception getResultException()

setResultException

public void setResultException(java.lang.Exception resultException)

setResultCode

public void setResultCode(int resultCode)