|
|||||||||
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.PutMethod
PUT Method.
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 | |
PutMethod()
Method constructor. |
|
PutMethod(java.lang.String path)
Method constructor. |
Method Summary | |
java.lang.String |
generateQuery()
Generate the query body. |
boolean |
isStreamedQuery()
Is the query body submitted through an InputStream of with a String. |
void |
parseResponse(java.io.InputStream is)
Parse response. |
void |
recycle()
Recycle the method object, so that it can be reused again. |
void |
sendData(byte[] data)
Send the contents of a byte array. |
void |
sendData(java.io.File file)
Send the contents of a file. |
void |
sendData(java.io.InputStream is)
Send the contents of an input stream. |
void |
sendData(java.lang.String data)
Send the contents of a string. |
void |
sendData(java.net.URL url)
Send the contents of the resource at the specified URL. |
void |
streamQuery(java.io.OutputStream out)
Stream the body of the query. |
Methods inherited from class org.apache.webdav.lib.methods.WebdavMethodBase |
checkNotUsed, checkUsed, followRedirects, generateHeaders, generateHeaders, generateRequestLine, getHeader, getHeaders, getName, getPath, getStatusCode, getStatusText, hasBeenUsed, processResponseHeaders, removeHeader, setDebug, setHeader, setPath, setQuery, setStatusCode, setStatusText, setUsed, validate |
Methods inherited from class java.lang.Object |
|
Constructor Detail |
public PutMethod()
public PutMethod(java.lang.String path)
Method Detail |
public void sendData(java.io.File file) throws java.io.IOException
public void sendData(java.net.URL url) throws java.io.IOException
public void sendData(byte[] data)
public void sendData(java.lang.String data)
public void sendData(java.io.InputStream is) throws java.io.IOException
public boolean isStreamedQuery()
isStreamedQuery
in class WebdavMethodBase
public void recycle()
recycle
in class WebdavMethodBase
public java.lang.String generateQuery()
generateQuery
in class WebdavMethodBase
public void streamQuery(java.io.OutputStream out) throws java.io.IOException
streamQuery
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 |