Class WebdavServlet.ProppatchOperation
java.lang.Object
org.apache.catalina.servlets.WebdavServlet.ProppatchOperation
- Enclosing class:
WebdavServlet
Represents a PROPPATCH sub operation to be performed.
-
Constructor Summary
ConstructorsConstructorDescriptionProppatchOperation(WebdavServlet.PropertyUpdateType updateType, Node propertyNode) PROPPATCH operation constructor. -
Method Summary
Modifier and TypeMethodDescriptionReturns the XML node that contains the property name (and value if SET).booleanReturns whether the property is protected.intReturns the status code to set as a result of the operation.Returns the update type for this operation.voidsetStatusCode(int statusCode) Sets the status code as a result of the operation.
-
Constructor Details
-
ProppatchOperation
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 Details
-
getUpdateType
Returns the update type for this operation.- Returns:
- the updateType
-
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
-