org.apache.manifoldcf.crawler.connectors.webcrawler
Class ThrottledFetcher.DataSession

java.lang.Object
  extended by org.apache.manifoldcf.crawler.connectors.webcrawler.ThrottledFetcher.DataSession
Enclosing class:
ThrottledFetcher

protected static class ThrottledFetcher.DataSession
extends java.lang.Object

Helper class for the above


Field Summary
protected  java.lang.String documentName
           
protected  ThrottledFetcher.DataRecorder dr
           
protected  java.util.ArrayList headerNames
           
protected  java.util.ArrayList headerValues
           
protected  int responseCode
           
protected  java.lang.String url
           
 
Constructor Summary
ThrottledFetcher.DataSession(ThrottledFetcher.DataRecorder dr, java.lang.String url)
           
 
Method Summary
 void addHeader(java.lang.String headerName, java.lang.String headerValue)
           
 void endHeader()
           
 void setResponseCode(int responseCode)
           
 void write(byte[] theBytes, int off, int length)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

dr

protected ThrottledFetcher.DataRecorder dr

url

protected java.lang.String url

responseCode

protected int responseCode

headerNames

protected java.util.ArrayList headerNames

headerValues

protected java.util.ArrayList headerValues

documentName

protected java.lang.String documentName
Constructor Detail

ThrottledFetcher.DataSession

public ThrottledFetcher.DataSession(ThrottledFetcher.DataRecorder dr,
                                    java.lang.String url)
Method Detail

setResponseCode

public void setResponseCode(int responseCode)

addHeader

public void addHeader(java.lang.String headerName,
                      java.lang.String headerValue)

endHeader

public void endHeader()
               throws org.apache.manifoldcf.core.interfaces.ManifoldCFException
Throws:
org.apache.manifoldcf.core.interfaces.ManifoldCFException

write

public void write(byte[] theBytes,
                  int off,
                  int length)
           throws java.io.IOException
Throws:
java.io.IOException