Package org.apache.catalina.servlets
Class WebdavServlet.ProppatchOperation
- java.lang.Object
-
- org.apache.catalina.servlets.WebdavServlet.ProppatchOperation
-
- Enclosing class:
- WebdavServlet
public static class WebdavServlet.ProppatchOperation extends java.lang.ObjectRepresents a PROPPATCH sub operation to be performed.
-
-
Constructor Summary
Constructors Constructor Description ProppatchOperation(WebdavServlet.PropertyUpdateType updateType, org.w3c.dom.Node propertyNode)PROPPATCH operation constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.w3c.dom.NodegetPropertyNode()Returns the XML node that contains the property name (and value if SET).booleangetProtectedProperty()Returns whether the property is protected.intgetStatusCode()Returns the status code to set as a result of the operation.WebdavServlet.PropertyUpdateTypegetUpdateType()Returns the update type for this operation.voidsetStatusCode(int statusCode)Sets the status code as a result of the operation.
-
-
-
Constructor Detail
-
ProppatchOperation
public ProppatchOperation(WebdavServlet.PropertyUpdateType updateType, org.w3c.dom.Node propertyNode)
PROPPATCH operation constructor.- Parameters:
updateType- the update type, either SET or REMOVEpropertyNode- the XML node that contains the property name (and value if SET)
-
-
Method Detail
-
getUpdateType
public WebdavServlet.PropertyUpdateType getUpdateType()
Returns the update type for this operation.- Returns:
- the updateType
-
getPropertyNode
public org.w3c.dom.Node getPropertyNode()
Returns the XML node that contains the property name (and value if SET).- Returns:
- the propertyNode
-
getStatusCode
public int getStatusCode()
Returns the status code to set as a result of the operation.- Returns:
- the statusCode
-
setStatusCode
public void setStatusCode(int statusCode)
Sets the status code as a result of the operation.- Parameters:
statusCode- the statusCode to set
-
getProtectedProperty
public boolean getProtectedProperty()
Returns whether the property is protected.- Returns:
trueif the property is protected
-
-