Package org.apache.jackrabbit.webdav
Class DavMethods
- java.lang.Object
-
- org.apache.jackrabbit.webdav.DavMethods
-
public final class DavMethods extends Object
DavMethodsdefines constants for the WebDAV METHODS.
-
-
Field Summary
Fields Modifier and Type Field Description static intDAV_ACLThe webdav ACL method and public constant defined by RFC 3744static intDAV_BASELINE_CONTROLThe webdav BASELINE-CONTROL method and public constant defined by RFC 3253static intDAV_BINDThe webdav BIND method and public constant defined by the BIND specificationstatic intDAV_CHECKINThe webdav CHECKIN method and public constant defined by RFC 3253static intDAV_CHECKOUTThe webdav CHECKOUT method and public constant defined by RFC 3253static intDAV_COPYThe webdav COPY method and public constant as defined by RFC 2518static intDAV_DELETEThe webdav DELETE method and public constantstatic intDAV_GETThe webdav GET method and public constantstatic intDAV_HEADThe webdav HEAD method and public constantstatic intDAV_LABELThe webdav LABEL method and public constant defined by RFC 3253static intDAV_LOCKThe webdav LOCK method and public constant as defined by RFC 2518static intDAV_MERGEThe webdav MERGE method and public constant defined by RFC 3253static intDAV_MKACTIVITYThe webdav MKACTIVITY method and public constant defined by RFC 3253static intDAV_MKCOLThe webdav MKCOL (make collection) method and public constant as defined by RFC 2518static intDAV_MKWORKSPACEThe webdav MKWORKSPACE method and public constant defined by RFC 3253static intDAV_MOVEThe webdav MOVE method and public constant as defined by RFC 2518static intDAV_OPTIONSThe webdav OPTIONS method and public constantstatic intDAV_ORDERPATCHThe webdav ORDERPATCH method and public constant defined by RFC 3648.static intDAV_POLLThe webdav POLL method and public constant
NOTE: This method is not defined by any of the Webdav RFCsstatic intDAV_POSTThe webdav POST method and public constantstatic intDAV_PROPFINDThe webdav PROPFIND method and public constant as defined by RFC 2518.static intDAV_PROPPATCHThe webdav PROPPATCH method and public constant as defined by RFC 2518static intDAV_PUTThe webdav PUT method and public constantstatic intDAV_REBINDThe webdav REBIND method and public constant defined by the BIND specificationstatic intDAV_REPORTThe webdav REPORT method and public constant defined by RFC 3253static intDAV_SEARCHThe webdav SEARCH method and public constant as defined by the Webdav Search internet draft.static intDAV_SUBSCRIBEThe webdav SUBSCRIBE method and public constant.
NOTE: This method is not defined by any of the Webdav RFCsstatic intDAV_UNBINDThe webdav UNBIND method and public constant defined by the BIND specificationstatic intDAV_UNCHECKOUTThe webdav UNCHECKOUT method and public constant defined by RFC 3253static intDAV_UNLOCKThe webdav UNLOCK method and public constant as defined by RFC 2518static intDAV_UNSUBSCRIBEThe webdav UNSUBSCRIBE method and public constant
NOTE: This method is not defined by any of the Webdav RFCsstatic intDAV_UPDATEThe webdav UPDATE method and public constant defined by RFC 3253static intDAV_VERSION_CONTROLThe webdav VERSION-CONTROL method and public constant defined by RFC 3253static StringMETHOD_ACLstatic StringMETHOD_BASELINE_CONTROLstatic StringMETHOD_BINDstatic StringMETHOD_CHECKINstatic StringMETHOD_CHECKOUTstatic StringMETHOD_COPYstatic StringMETHOD_DELETEstatic StringMETHOD_GETstatic StringMETHOD_HEADstatic StringMETHOD_LABELstatic StringMETHOD_LOCKstatic StringMETHOD_MERGEstatic StringMETHOD_MKACTIVITYstatic StringMETHOD_MKCOLstatic StringMETHOD_MKWORKSPACEstatic StringMETHOD_MOVEstatic StringMETHOD_OPTIONSstatic StringMETHOD_ORDERPATCHstatic StringMETHOD_POLLstatic StringMETHOD_POSTstatic StringMETHOD_PROPFINDstatic StringMETHOD_PROPPATCHstatic StringMETHOD_PUTstatic StringMETHOD_REBINDstatic StringMETHOD_REPORTstatic StringMETHOD_SEARCHstatic StringMETHOD_SUBSCRIBEstatic StringMETHOD_UNBINDstatic StringMETHOD_UNCHECKOUTstatic StringMETHOD_UNLOCKstatic StringMETHOD_UNSUBSCRIBEstatic StringMETHOD_UPDATEstatic StringMETHOD_VERSION_CONTROL
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static intgetMethodCode(String method)Returns webdav method type code, error result <= 0 Valid type codes > 0static booleanisCreateCollectionRequest(DavServletRequest request)Returnstrueif the request is to create a collection resource.static booleanisCreateRequest(DavServletRequest request)Returnstrueif the request is to create a resource.static booleanisDeltaVMethod(DavServletRequest request)Returns true, if the specified method is defined by RFC 3253static booleanisMethodAffectedByLabel(DavServletRequest request)Returns true, if the specified method is affected by a Label header
-
-
-
Field Detail
-
DAV_OPTIONS
public static final int DAV_OPTIONS
The webdav OPTIONS method and public constant- See Also:
- Constant Field Values
-
METHOD_OPTIONS
public static final String METHOD_OPTIONS
- See Also:
- Constant Field Values
-
DAV_GET
public static final int DAV_GET
The webdav GET method and public constant- See Also:
- Constant Field Values
-
METHOD_GET
public static final String METHOD_GET
- See Also:
- Constant Field Values
-
DAV_HEAD
public static final int DAV_HEAD
The webdav HEAD method and public constant- See Also:
- Constant Field Values
-
METHOD_HEAD
public static final String METHOD_HEAD
- See Also:
- Constant Field Values
-
DAV_POST
public static final int DAV_POST
The webdav POST method and public constant- See Also:
- Constant Field Values
-
METHOD_POST
public static final String METHOD_POST
- See Also:
- Constant Field Values
-
DAV_DELETE
public static final int DAV_DELETE
The webdav DELETE method and public constant- See Also:
- Constant Field Values
-
METHOD_DELETE
public static final String METHOD_DELETE
- See Also:
- Constant Field Values
-
DAV_PUT
public static final int DAV_PUT
The webdav PUT method and public constant- See Also:
- Constant Field Values
-
METHOD_PUT
public static final String METHOD_PUT
- See Also:
- Constant Field Values
-
DAV_PROPFIND
public static final int DAV_PROPFIND
The webdav PROPFIND method and public constant as defined by RFC 2518.- See Also:
- Constant Field Values
-
METHOD_PROPFIND
public static final String METHOD_PROPFIND
- See Also:
- Constant Field Values
-
DAV_PROPPATCH
public static final int DAV_PROPPATCH
The webdav PROPPATCH method and public constant as defined by RFC 2518- See Also:
- Constant Field Values
-
METHOD_PROPPATCH
public static final String METHOD_PROPPATCH
- See Also:
- Constant Field Values
-
DAV_MKCOL
public static final int DAV_MKCOL
The webdav MKCOL (make collection) method and public constant as defined by RFC 2518- See Also:
- Constant Field Values
-
METHOD_MKCOL
public static final String METHOD_MKCOL
- See Also:
- Constant Field Values
-
DAV_COPY
public static final int DAV_COPY
The webdav COPY method and public constant as defined by RFC 2518- See Also:
- Constant Field Values
-
METHOD_COPY
public static final String METHOD_COPY
- See Also:
- Constant Field Values
-
DAV_MOVE
public static final int DAV_MOVE
The webdav MOVE method and public constant as defined by RFC 2518- See Also:
- Constant Field Values
-
METHOD_MOVE
public static final String METHOD_MOVE
- See Also:
- Constant Field Values
-
DAV_LOCK
public static final int DAV_LOCK
The webdav LOCK method and public constant as defined by RFC 2518- See Also:
- Constant Field Values
-
METHOD_LOCK
public static final String METHOD_LOCK
- See Also:
- Constant Field Values
-
DAV_UNLOCK
public static final int DAV_UNLOCK
The webdav UNLOCK method and public constant as defined by RFC 2518- See Also:
- Constant Field Values
-
METHOD_UNLOCK
public static final String METHOD_UNLOCK
- See Also:
- Constant Field Values
-
DAV_ORDERPATCH
public static final int DAV_ORDERPATCH
The webdav ORDERPATCH method and public constant defined by RFC 3648.- See Also:
- Constant Field Values
-
METHOD_ORDERPATCH
public static final String METHOD_ORDERPATCH
- See Also:
- Constant Field Values
-
DAV_SUBSCRIBE
public static final int DAV_SUBSCRIBE
The webdav SUBSCRIBE method and public constant.
NOTE: This method is not defined by any of the Webdav RFCs- See Also:
- Constant Field Values
-
METHOD_SUBSCRIBE
public static final String METHOD_SUBSCRIBE
- See Also:
- Constant Field Values
-
DAV_UNSUBSCRIBE
public static final int DAV_UNSUBSCRIBE
The webdav UNSUBSCRIBE method and public constant
NOTE: This method is not defined by any of the Webdav RFCs- See Also:
- Constant Field Values
-
METHOD_UNSUBSCRIBE
public static final String METHOD_UNSUBSCRIBE
- See Also:
- Constant Field Values
-
DAV_POLL
public static final int DAV_POLL
The webdav POLL method and public constant
NOTE: This method is not defined by any of the Webdav RFCs- See Also:
- Constant Field Values
-
METHOD_POLL
public static final String METHOD_POLL
- See Also:
- Constant Field Values
-
DAV_SEARCH
public static final int DAV_SEARCH
The webdav SEARCH method and public constant as defined by the Webdav Search internet draft.- See Also:
- Constant Field Values
-
METHOD_SEARCH
public static final String METHOD_SEARCH
- See Also:
- Constant Field Values
-
DAV_REPORT
public static final int DAV_REPORT
The webdav REPORT method and public constant defined by RFC 3253- See Also:
- Constant Field Values
-
METHOD_REPORT
public static final String METHOD_REPORT
- See Also:
- Constant Field Values
-
DAV_VERSION_CONTROL
public static final int DAV_VERSION_CONTROL
The webdav VERSION-CONTROL method and public constant defined by RFC 3253- See Also:
- Constant Field Values
-
METHOD_VERSION_CONTROL
public static final String METHOD_VERSION_CONTROL
- See Also:
- Constant Field Values
-
DAV_CHECKIN
public static final int DAV_CHECKIN
The webdav CHECKIN method and public constant defined by RFC 3253- See Also:
- Constant Field Values
-
METHOD_CHECKIN
public static final String METHOD_CHECKIN
- See Also:
- Constant Field Values
-
DAV_CHECKOUT
public static final int DAV_CHECKOUT
The webdav CHECKOUT method and public constant defined by RFC 3253- See Also:
- Constant Field Values
-
METHOD_CHECKOUT
public static final String METHOD_CHECKOUT
- See Also:
- Constant Field Values
-
DAV_UNCHECKOUT
public static final int DAV_UNCHECKOUT
The webdav UNCHECKOUT method and public constant defined by RFC 3253- See Also:
- Constant Field Values
-
METHOD_UNCHECKOUT
public static final String METHOD_UNCHECKOUT
- See Also:
- Constant Field Values
-
DAV_LABEL
public static final int DAV_LABEL
The webdav LABEL method and public constant defined by RFC 3253- See Also:
- Constant Field Values
-
METHOD_LABEL
public static final String METHOD_LABEL
- See Also:
- Constant Field Values
-
DAV_MERGE
public static final int DAV_MERGE
The webdav MERGE method and public constant defined by RFC 3253- See Also:
- Constant Field Values
-
METHOD_MERGE
public static final String METHOD_MERGE
- See Also:
- Constant Field Values
-
DAV_UPDATE
public static final int DAV_UPDATE
The webdav UPDATE method and public constant defined by RFC 3253- See Also:
- Constant Field Values
-
METHOD_UPDATE
public static final String METHOD_UPDATE
- See Also:
- Constant Field Values
-
DAV_MKWORKSPACE
public static final int DAV_MKWORKSPACE
The webdav MKWORKSPACE method and public constant defined by RFC 3253- See Also:
- Constant Field Values
-
METHOD_MKWORKSPACE
public static final String METHOD_MKWORKSPACE
- See Also:
- Constant Field Values
-
DAV_BASELINE_CONTROL
public static final int DAV_BASELINE_CONTROL
The webdav BASELINE-CONTROL method and public constant defined by RFC 3253- See Also:
- Constant Field Values
-
METHOD_BASELINE_CONTROL
public static final String METHOD_BASELINE_CONTROL
- See Also:
- Constant Field Values
-
DAV_MKACTIVITY
public static final int DAV_MKACTIVITY
The webdav MKACTIVITY method and public constant defined by RFC 3253- See Also:
- Constant Field Values
-
METHOD_MKACTIVITY
public static final String METHOD_MKACTIVITY
- See Also:
- Constant Field Values
-
DAV_ACL
public static final int DAV_ACL
The webdav ACL method and public constant defined by RFC 3744- See Also:
- Constant Field Values
-
METHOD_ACL
public static final String METHOD_ACL
- See Also:
- Constant Field Values
-
DAV_REBIND
public static final int DAV_REBIND
The webdav REBIND method and public constant defined by the BIND specification- See Also:
- Constant Field Values
-
METHOD_REBIND
public static final String METHOD_REBIND
- See Also:
- Constant Field Values
-
DAV_UNBIND
public static final int DAV_UNBIND
The webdav UNBIND method and public constant defined by the BIND specification- See Also:
- Constant Field Values
-
METHOD_UNBIND
public static final String METHOD_UNBIND
- See Also:
- Constant Field Values
-
DAV_BIND
public static final int DAV_BIND
The webdav BIND method and public constant defined by the BIND specification- See Also:
- Constant Field Values
-
METHOD_BIND
public static final String METHOD_BIND
- See Also:
- Constant Field Values
-
-
Method Detail
-
getMethodCode
public static int getMethodCode(String method)
Returns webdav method type code, error result <= 0 Valid type codes > 0
-
isCreateRequest
public static boolean isCreateRequest(DavServletRequest request)
Returnstrueif the request is to create a resource. True forPUT,POST,MKCOLandMKWORKSPACErequests.- Returns:
- true if request method is to create (or replace) a resource
-
isCreateCollectionRequest
public static boolean isCreateCollectionRequest(DavServletRequest request)
Returnstrueif the request is to create a collection resource. True forMKCOLandMKWORKSPACErequests.- Returns:
- true if request method is to create a new collection resource
-
isMethodAffectedByLabel
public static boolean isMethodAffectedByLabel(DavServletRequest request)
Returns true, if the specified method is affected by a Label header- Parameters:
request-- Returns:
-
isDeltaVMethod
public static boolean isDeltaVMethod(DavServletRequest request)
Returns true, if the specified method is defined by RFC 3253- Parameters:
request-- Returns:
- true, if the specified method is defined by RFC 3253
-
-