|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.webdav.lib.methods.WebdavMethodBase | +--org.apache.webdav.lib.methods.GetMethod
GET Method.
Field Summary | |
protected java.io.File |
fileData
File which contains the buffered data. |
protected byte[] |
memoryData
If we're not using the HD, we're using a memory byte buffer. |
static java.lang.String |
TEMP_DIR
Temporary directory. |
protected java.lang.String |
tempDir
Temporary directory to use. |
protected java.lang.String |
tempFile
Temporary file to use. |
protected boolean |
useDisk
By default, the get method will buffer read data to the disk. |
Fields inherited from class org.apache.webdav.lib.methods.WebdavMethodBase |
debug, headers, name, path, query, state, statusCode, statusText |
Fields inherited from interface org.apache.webdav.lib.methods.WebdavMethod |
PROTOCOL |
Constructor Summary | |
GetMethod()
Method constructor. |
|
GetMethod(java.lang.String path)
Method constructor. |
|
GetMethod(java.lang.String path,
boolean useDisk,
java.lang.String tempDir)
Method constructor. |
|
GetMethod(java.lang.String path,
boolean useDisk,
java.lang.String tempDir,
java.lang.String tempFile)
Method constructor. |
|
GetMethod(java.lang.String path,
java.lang.String tempDir)
Method constructor. |
|
GetMethod(java.lang.String path,
java.lang.String tempDir,
java.lang.String tempFile)
Method constructor. |
Method Summary | |
boolean |
followRedirects()
True if this methods should automatically follow redirects. |
java.lang.String |
generateQuery()
Generate the query body. |
java.io.InputStream |
getData()
Get read data. |
java.lang.String |
getDataAsString()
Get read data as a String. |
java.lang.String |
getTempDir()
Temporary directory getter. |
java.lang.String |
getTempFile()
Temporary file getter. |
boolean |
getUseDisk()
Use disk getter. |
void |
parseResponse(java.io.InputStream is)
Parse response. |
void |
setTempDir(java.lang.String tempDir)
Temporary directory setter. |
void |
setTempFile(java.lang.String tempFile)
Temporary file setter. |
void |
setUseDisk(boolean useDisk)
Use disk setter. |
Methods inherited from class org.apache.webdav.lib.methods.WebdavMethodBase |
checkNotUsed, checkUsed, generateHeaders, generateHeaders, generateRequestLine, getHeader, getHeaders, getName, getPath, getStatusCode, getStatusText, hasBeenUsed, isStreamedQuery, processResponseHeaders, recycle, removeHeader, setDebug, setHeader, setPath, setQuery, setStatusCode, setStatusText, setUsed, streamQuery, validate |
Methods inherited from class java.lang.Object |
|
Field Detail |
public static final java.lang.String TEMP_DIR
protected boolean useDisk
protected byte[] memoryData
protected java.io.File fileData
protected java.lang.String tempDir
protected java.lang.String tempFile
Constructor Detail |
public GetMethod()
public GetMethod(java.lang.String path)
public GetMethod(java.lang.String path, java.lang.String tempDir)
public GetMethod(java.lang.String path, boolean useDisk, java.lang.String tempDir)
public GetMethod(java.lang.String path, java.lang.String tempDir, java.lang.String tempFile)
public GetMethod(java.lang.String path, boolean useDisk, java.lang.String tempDir, java.lang.String tempFile)
Method Detail |
public void setUseDisk(boolean useDisk)
useDisk
- New value of useDiskpublic boolean getUseDisk()
boolean
- useDisk valuepublic boolean followRedirects()
followRedirects
in class WebdavMethodBase
public void setTempDir(java.lang.String tempDir)
tempDir
- New value of tempDirpublic java.lang.String getTempDir()
public void setTempFile(java.lang.String tempFile)
tempFile
- New value of tempFilepublic java.lang.String getTempFile()
public java.io.InputStream getData() throws java.io.IOException
public java.lang.String getDataAsString() throws java.io.IOException
public java.lang.String generateQuery()
generateQuery
in class WebdavMethodBase
public void parseResponse(java.io.InputStream is) throws java.io.IOException
parseResponse
in class WebdavMethodBase
is
- Input stream
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |