org.w3c.jigsaw.webdav
Class DAVRequest

java.lang.Object
  extended by org.w3c.www.http.HttpMessage
      extended by org.w3c.www.http.HttpEntityMessage
          extended by org.w3c.www.http.HttpRequestMessage
              extended by org.w3c.jigsaw.http.Request
                  extended by org.w3c.jigsaw.webdav.DAVRequest
All Implemented Interfaces:
java.lang.Cloneable, RequestInterface, HTTP, MimeHeaderHolder, WEBDAV

public class DAVRequest
extends Request
implements WEBDAV


Field Summary
 
Fields inherited from class org.w3c.jigsaw.http.Request
client, filters, in, infilters, internal, keepcon, ORIG_URL_STATE, original, parser, THE_SERVER
 
Fields inherited from class org.w3c.www.http.HttpRequestMessage
H_ACCEPT, H_ACCEPT_CHARSET, H_ACCEPT_ENCODING, H_ACCEPT_LANGUAGE, H_AUTHORIZATION, H_EXPECT, H_FROM, H_HOST, H_IF_MATCH, H_IF_MODIFIED_SINCE, H_IF_NONE_MATCH, H_IF_RANGE, H_IF_UNMODIFIED_SINCE, H_MAX_FORWARDS, H_PROXY_AUTHORIZATION, H_RANGE, H_REFERER, H_TE, H_USER_AGENT, method, proxy, sProxy, url
 
Fields inherited from class org.w3c.www.http.HttpEntityMessage
H_ALLOW, H_CONTENT_BASE, H_CONTENT_ENCODING, H_CONTENT_LANGUAGE, H_CONTENT_LENGTH, H_CONTENT_LOCATION, H_CONTENT_MD5, H_CONTENT_RANGE, H_CONTENT_TYPE, H_ETAG, H_EXPIRES, H_LAST_MODIFIED
 
Fields inherited from class org.w3c.www.http.HttpMessage
descriptors, EMIT_ALL, EMIT_BODY, EMIT_FOOTERS, EMIT_HEADERS, emitdate, factory, H_CACHE_CONTROL, H_CMAN_EXT, H_CONNECTION, H_COOKIE, H_COPT_EXT, H_DATE, H_MAN_EXT, H_OPT_EXT, H_PRAGMA, H_PROTOCOL, H_PROTOCOL_INFO, H_PROTOCOL_QUERY, H_PROTOCOL_REQUEST, H_PROXY_CONNECTION, H_SET_COOKIE, H_TRAILER, H_TRANSFER_ENCODING, H_UPGRADE, H_VIA, headers, major, MAX_HEADERS, minor, state, values
 
Fields inherited from interface org.w3c.www.webdav.WEBDAV
CLASS_1_COMPLIANT, CLASS_2_COMPLIANT, DAV_HEADER, dav_msg_100, dav_msg_200, dav_msg_300, dav_msg_400, dav_msg_500, DEPTH_0, DEPTH_1, DEPTH_HEADER, DEPTH_INFINITY, DESTINATION_HEADER, ENCODING, FAILED_DEPENDENCY, IF_HEADER, INSUFFICIENT_STORAGE, LOCK_TOKEN_HEADER, LOCKED, MULTI_STATUS, NAMESPACE_PREFIX, NAMESPACE_URI, OVERWRITE_HEADER, PROCESSING, STATUS_URI_HEADER, TIMEOUT_HEADER, UNPROCESSABLE_ENTITY
 
Fields inherited from interface org.w3c.www.http.HTTP
ACCEPTED, BAD_GATEWAY, BAD_REQUEST, byteArrayVersion, CONFLICT, CONNECT, CONTINUE, CREATED, DELETE, DONE, EXPECTATION_FAILED, FORBIDDEN, FOUND, GATEWAY_TIMEOUT, GET, GONE, HEAD, HTTP_100_CONTINUE, HTTP_VERSION_NOT_SUPPORTED, INTERNAL_SERVER_ERROR, LENGTH_REQUIRED, major_number, minor_number, MOVED_PERMANENTLY, msg_100, msg_200, msg_300, msg_400, msg_500, MULTIPLE_CHOICE, NO_CONTENT, NOHEADER, NON_AUTHORITATIVE_INFORMATION, NOT_ACCEPTABLE, NOT_ALLOWED, NOT_EXTENDED, NOT_FOUND, NOT_IMPLEMENTED, NOT_MODIFIED, OK, OPTIONS, PARTIAL_CONTENT, PAYMENT_REQUIRED, POST, PRECONDITION_FAILED, PROXY_AUTH_REQUIRED, PUT, REQUEST_ENTITY_TOO_LARGE, REQUEST_TIMEOUT, REQUEST_URI_TOO_LONG, REQUESTED_RANGE_NOT_SATISFIABLE, RESET_CONTENT, SEE_OTHER, SERVICE_UNAVAILABLE, SWITCHING, TEMPORARY_REDIRECT, TRACE, UNAUTHORIZED, UNSUPPORTED_MEDIA_TYPE, USE_PROXY
 
Constructor Summary
DAVRequest(Client client, MimeParser parser)
          Constructor
 
Method Summary
static java.lang.String depthToString(int depth)
           
 int getDepth()
           
 java.lang.String getDestination()
           
 DAVIf[] getIf()
           
 java.lang.String getLockToken()
           
 boolean getOverwrite()
           
 java.lang.String[] getTimeout()
           
 boolean isTaggedListIfHeader()
           
 ReplyInterface makeBadRequestReply()
          Get a "Bad request" reply.
 DAVReply makeDAVReply(int status)
          Make an empty DAV Reply object matching this request version.
 Reply makeReply(int status)
          Make an empty Reply object matching this request version.
 
Methods inherited from class org.w3c.jigsaw.http.Request
canKeepConnection, getClient, getClone, getInputStream, getOriginal, getQueryString, getTargetResource, getURLPath, hasAccept, hasAcceptCharset, hasAcceptEncoding, hasAcceptLanguage, hasAuthorization, hasContentLength, hasContentType, hasProxyAuthorization, hasQueryString, isInternal, isProxy, notifyEndParsing, setFilters, setInternal, setProxy, setState, setStream, setTargetResource, setURLPath, skipBody, unescape
 
Methods inherited from class org.w3c.www.http.HttpRequestMessage
dump, getAccept, getAcceptCharset, getAcceptEncoding, getAcceptLanguage, getAuthorization, getExpect, getFrom, getHost, getIfMatch, getIfModifiedSince, getIfNoneMatch, getIfRange, getIfUnmodifiedSince, getMaxForwards, getMaxStale, getMethod, getMinFresh, getProxy, getProxyAuthorization, getRange, getReferer, getTarget, getTE, getURL, getUserAgent, hasProxy, main, notifyBeginParsing, setAccept, setAcceptCharset, setAcceptEncoding, setAcceptLanguage, setAuthorization, setExpect, setFrom, setHost, setIfMatch, setIfModifiedSince, setIfNoneMatch, setIfRange, setIfUnmodifiedSince, setMaxForwards, setMaxStale, setMethod, setMinFresh, setProxy, setProxyAuthorization, setRange, setReferer, setTarget, setTE, setURL, setUserAgent, startEmit
 
Methods inherited from class org.w3c.www.http.HttpEntityMessage
addContentEncoding, getAllow, getContentBase, getContentEncoding, getContentLanguage, getContentLength, getContentLocation, getContentMD5, getContentRange, getContentType, getETag, getExpires, getLastModified, hasContentRange, setAllow, setContentBase, setContentEncoding, setContentLanguage, setContentLength, setContentLocation, setContentMD5, setContentType, setETag, setExpires, setLastModified
 
Methods inherited from class org.w3c.www.http.HttpMessage
addConnection, addNoCache, addPragma, addProxyConnection, addTransferEncoding, addVia, checkNoStore, checkOnlyIfCached, delState, emit, emit, emitHeaders, endEmit, enumerateHeaderDescriptions, enumerateHeaderDescriptions, generateExtNamespace, getCacheControl, getCManExtHeader, getConnection, getCookie, getCOptExtHeader, getDate, getDeeperClone, getEmitDate, getExtensionHeaders, getExtHeader, getExtList, getHeaderValue, getHeaderValue, getHeaderValue, getHeaderValue, getHttpCManExtDecl, getHttpCOptExtDecl, getHttpManExtDecl, getHttpOptExtDecl, getMajorVersion, getManExtHeader, getMaxAge, getMinorVersion, getNoCache, getOptExtHeader, getPragma, getProtocol, getProtocolInfo, getProtocolQuery, getProtocolRequest, getProxyConnection, getSetCookie, getSMaxAge, getState, getStateNames, getTrailer, getTransferEncoding, getUpgrade, getValue, getValue, getVersion, getVia, hasConnection, hasHeader, hasHeader, hasPragma, hasProxyConnection, hasState, hasTransferEncoding, notifyHeader, registerExtHeader, registerHeader, registerHeader, removeHeader, removeHeader, setCacheControl, setConnection, setCookie, setDate, setEnd2EndExtensionAcknowledgmentHeader, setExtensionHeader, setHeaderValue, setHeaderValue, setHeaderValue, setHopByHopExtensionAcknowledgmentHeader, setHttpCManExtDecl, setHttpCOptExtDecl, setHttpExtDecl, setHttpManExtDecl, setHttpOptExtDecl, setMaxAge, setNamespaces, setNoCache, setNoCache, setNoStore, setOnlyIfCached, setPragma, setProtocol, setProtocolInfo, setProtocolQuery, setProtocolRequest, setProxyConnection, setSetCookie, setSMaxAge, setState, setTrailer, setTransferEncoding, setUpgrade, setValue, setVia
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DAVRequest

public DAVRequest(Client client,
                  MimeParser parser)
Constructor

Method Detail

depthToString

public static final java.lang.String depthToString(int depth)

getDepth

public int getDepth()

getDestination

public java.lang.String getDestination()

getIf

public DAVIf[] getIf()

isTaggedListIfHeader

public boolean isTaggedListIfHeader()

getLockToken

public java.lang.String getLockToken()

getOverwrite

public boolean getOverwrite()

getTimeout

public java.lang.String[] getTimeout()

makeBadRequestReply

public ReplyInterface makeBadRequestReply()
Description copied from interface: RequestInterface
Get a "Bad request" reply.

Specified by:
makeBadRequestReply in interface RequestInterface
Overrides:
makeBadRequestReply in class Request
Returns:
a ReplyInterface instance.

makeReply

public Reply makeReply(int status)
Make an empty Reply object matching this request version.

Overrides:
makeReply in class Request
Parameters:
status - The status of the reply.

makeDAVReply

public DAVReply makeDAVReply(int status)
Make an empty DAV Reply object matching this request version.

Parameters:
status - The status of the reply.