| com.ibm.webdav.protocol.http.WebDAVURLConnection
WebDAVURLConnection | public class WebDAVURLConnection extends sun.net.www.protocol.http.HttpURLConnection (Code) | | A class to represent a WebDAV HTTP connection to a remote object.
WebDAVURLConnection is a subclass of sun.net.www.protocol.http.HttpURLConnection
that overrides methods as required to support the additional WebDAV methods.
HttpURLConnection was not developed to be
subclassed as it contains private data that needs to be available in the
subclasses. So some of the method overrides may seem a little strange. See the
individual methods for details. The changes to HttpURLConnection are to allow
WebDAV methods, and to handle errors differently so that clients can receive
more specific exceptions.
author: Jim Amsden |
setRequestMethod | public void setRequestMethod(String method) throws ProtocolException(Code) | | Set the method for the URL request, one of:
- GET
- POST
- HEAD
- OPTIONS
- PUT
- DELETE
- PROPFIND
- PROPPATCH
- MKCOL
- MOVE
- COPY
- LOCK
- UNLOCK
- TRACE
exception: ProtocolException - if the method cannot be reset or ifthe requested method isn't valid for HTTP. |
|
|