Class Keepalive

  extended by org.apache.wink.webdav.model.Keepalive

public class Keepalive
extends Object

The keepalive XML element per the WebDAV specification [RFC 4918]

    Name:       keepalive
    Namespace:  DAV:
    Purpose:    Specifies requirements for the copying/moving of live
    Description: If a list of URIs is included as the value of keepalive
    then the named properties MUST be "live" after they are copied
    (moved) to the destination resource of a COPY (or MOVE).  If the
    value "*" is given for the keepalive XML element, this designates
    that all live properties on the source resource MUST be live on the
    destination.  If the requirements specified by the keepalive element
    can not be honored then the method MUST fail with a 412 (Precondition
    Failed).  All DAV compliant resources MUST support the keepalive XML
    element for use with the COPY and MOVE methods.
    Value:      "*" ; #PCDATA value can only be "*"
    <!ELEMENT keepalive (#PCDATA | href+) >

Field Summary
protected  List<Serializable> content
Constructor Summary
Method Summary
 List<Serializable> getContent()
          Gets the value of the content property.
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Field Detail


protected List<Serializable> content
Constructor Detail


public Keepalive()
Method Detail


public List<Serializable> getContent()
Gets the value of the content property.

This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a set method for the content property.

For example, to add a new item, do as follows:


Objects of the following type(s) are allowed in the list JAXBElement< String> String

Copyright © 2009-2012 The Apache Software Foundation. All Rights Reserved.