Examples of DepthHeader


Examples of org.apache.jackrabbit.webdav.header.DepthHeader

    public LockMethod(String uri, LockInfo lockInfo) throws IOException {
        super(uri);
        if (lockInfo != null && !lockInfo.isRefreshLock()) {
            TimeoutHeader th = new TimeoutHeader(lockInfo.getTimeout());
            setRequestHeader(th);
            DepthHeader dh = new DepthHeader(lockInfo.isDeep());
            setRequestHeader(dh);
            setRequestBody(lockInfo);
            isRefresh = false;
        } else {
            throw new IllegalArgumentException("Cannot create a LOCK request without lock info. Use the constructor taking lock tokens in order to build a LOCK request for refresh.");
View Full Code Here

Examples of org.apache.jackrabbit.webdav.header.DepthHeader

    public PropFindMethod(String uri, int propfindType, DavPropertyNameSet propNameSet,
                           int depth) throws IOException {
        super(uri);

        DepthHeader dh = new DepthHeader(depth);
        setRequestHeader(dh.getHeaderName(), dh.getHeaderValue());

        // build the request body
        try {
            // create the document and attach the root element
            Document document = BUILDER_FACTORY.newDocumentBuilder().newDocument();
View Full Code Here

Examples of org.apache.jackrabbit.webdav.header.DepthHeader

    private final boolean isDeep;

    public ReportMethod(String uri, ReportInfo reportInfo) throws IOException {
  super(uri);
  DepthHeader dh = new DepthHeader(reportInfo.getDepth());
        isDeep = reportInfo.getDepth() > DavConstants.DEPTH_0;

  setRequestHeader(dh);

        setRequestHeader(DavConstants.HEADER_CONTENT_TYPE, "text/xml; charset=UTF-8");
View Full Code Here

Examples of org.apache.jackrabbit.webdav.header.DepthHeader

    public LockMethod(String uri, LockInfo lockInfo) throws IOException {
        super(uri);
        if (lockInfo != null && !lockInfo.isRefreshLock()) {
            TimeoutHeader th = new TimeoutHeader(lockInfo.getTimeout());
            setRequestHeader(th);
            DepthHeader dh = new DepthHeader(lockInfo.isDeep());
            setRequestHeader(dh);
            setRequestHeader(DavConstants.HEADER_CONTENT_TYPE, "text/xml; charset=UTF-8");
            setRequestBody(lockInfo);
            isRefresh = false;
        } else {
View Full Code Here

Examples of org.apache.jackrabbit.webdav.header.DepthHeader

    private PropFindMethod(String uri, int propfindType, DavPropertyNameSet propNameSet,
                           int depth) throws IOException {
        super(uri);

        DepthHeader dh = new DepthHeader(depth);
        setRequestHeader(dh.getHeaderName(), dh.getHeaderValue());

        setRequestHeader(DavConstants.HEADER_CONTENT_TYPE, "text/xml; charset=UTF-8");
       
        // build the request body
        try {
View Full Code Here

Examples of org.apache.jackrabbit.webdav.header.DepthHeader

        long to = subscriptionInfo.getTimeOut();
        if (to != DavConstants.UNDEFINED_TIMEOUT) {
            setRequestHeader(new TimeoutHeader(subscriptionInfo.getTimeOut()));
        }
        // always set depth header since value is boolean flag
        setRequestHeader(new DepthHeader(subscriptionInfo.isDeep()));

        setRequestHeader(DavConstants.HEADER_CONTENT_TYPE, "text/xml; charset=UTF-8");
         setRequestBody(subscriptionInfo);
    }
View Full Code Here

Examples of org.apache.jackrabbit.webdav.header.DepthHeader

    public PropFindMethod(String uri, int propfindType, DavPropertyNameSet propNameSet,
                           int depth) throws IOException {
        super(uri);

        DepthHeader dh = new DepthHeader(depth);
        setRequestHeader(dh.getHeaderName(), dh.getHeaderValue());

        // build the request body
        try {
            // create the document and attach the root element
            Document document = BUILDER_FACTORY.newDocumentBuilder().newDocument();
View Full Code Here

Examples of org.apache.jackrabbit.webdav.header.DepthHeader

     * @param uri
     * @param labelInfo
     */
    public LabelMethod(String uri, LabelInfo labelInfo) throws IOException {
        super(uri);
        setRequestHeader(new DepthHeader(labelInfo.getDepth()));
        setRequestBody(labelInfo);
    }
View Full Code Here

Examples of org.apache.jackrabbit.webdav.header.DepthHeader

    public CopyMethod(String uri, String destinationUri, boolean overwrite, boolean shallow) {
        super(uri);
        setRequestHeader(DavConstants.HEADER_DESTINATION, destinationUri);
        setRequestHeader(new OverwriteHeader(overwrite));
        if (shallow) {
            setRequestHeader(new DepthHeader(false));
        }
    }
View Full Code Here

Examples of org.apache.jackrabbit.webdav.header.DepthHeader

    private static Logger log = Logger.getLogger(ReportMethod.class);

    public ReportMethod(String uri, ReportInfo reportInfo) throws IOException {
  super(uri);
  DepthHeader dh = new DepthHeader(reportInfo.getDepth());
  setRequestHeader(dh);

        setRequestHeader(DavConstants.HEADER_CONTENT_TYPE, "text/xml; charset=UTF-8");
         setRequestBody(reportInfo);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.