|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.wvcm.store.webdav.request.AbstractRequest
public abstract class AbstractRequest
Base class for all handlers for request bodies.
Field Summary | |
---|---|
protected static java.lang.String[] |
defaultProperties
|
protected static org.jdom.Namespace |
dnsp
|
Constructor Summary | |
---|---|
AbstractRequest()
Constructor |
Method Summary | |
---|---|
protected void |
createDefaultPropertyElement(org.jdom.Element contextElm,
java.lang.String name)
|
protected void |
createDefaultPropertyElements(org.jdom.Element contextElm,
PropertyNameList pnameList)
Add default property elements, needed for resource type determination, to the specified context element. |
protected void |
createHrefElement(org.jdom.Element contextElm,
Resource resource)
Create a href element for the specified resource in the specified context |
protected void |
createHrefElement(org.jdom.Element contextElm,
java.lang.String resourcePath)
Create a href element for the specified resource path in the specified context |
protected void |
createHrefElements(org.jdom.Element contextElm,
java.util.List resourceList)
Create a href elements for all the specified resources in the specified context |
protected void |
createPrivilegeElement(org.jdom.Element contextElm,
AccessControlElement.Privilege privilege)
Create a privilege element for the specified Privilege in the specified context |
protected void |
createPropElement(org.jdom.Element contextElm,
PropertyNameList pnameList)
Add a DAV:prop element containing the specified properties to the specified context element. |
protected void |
createPropElement(org.jdom.Element contextElm,
PropertyNameList pnameList,
boolean addDefaultProps)
Add a DAV:prop element containing the specified properties to the specified context element. |
protected org.jdom.Element |
createPropertyElement(PropertyNameList.PropertyName pname)
Create property element for specified PropertyName |
protected void |
createPropertyElements(org.jdom.Element contextElm,
PropertyNameList pnameList)
Create property elements in the specified context. |
byte[] |
getReqBodyAsBytes()
Get the request body as byte array. |
void |
setReqBodyDoc(org.jdom.Document reqBodyDoc)
Set the request body document |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static org.jdom.Namespace dnsp
protected static java.lang.String[] defaultProperties
Constructor Detail |
---|
public AbstractRequest()
Method Detail |
---|
public void setReqBodyDoc(org.jdom.Document reqBodyDoc)
reqBodyDoc
- the documentpublic byte[] getReqBodyAsBytes()
protected void createPropElement(org.jdom.Element contextElm, PropertyNameList pnameList)
contextElm
- an ElementpnameList
- a PropertyNameListprotected void createPropElement(org.jdom.Element contextElm, PropertyNameList pnameList, boolean addDefaultProps)
contextElm
- an ElementpnameList
- a PropertyNameListaddDefaultProps
- a booleanprotected void createDefaultPropertyElements(org.jdom.Element contextElm, PropertyNameList pnameList)
contextElm
- an Elementprotected void createDefaultPropertyElement(org.jdom.Element contextElm, java.lang.String name)
protected void createPropertyElements(org.jdom.Element contextElm, PropertyNameList pnameList)
contextElm
- the contextpnameList
- the wanted propertiesprotected org.jdom.Element createPropertyElement(PropertyNameList.PropertyName pname)
pname
- a PropertyName
protected void createPrivilegeElement(org.jdom.Element contextElm, AccessControlElement.Privilege privilege)
contextElm
- an Elementprivilege
- a Privilegeprotected void createHrefElement(org.jdom.Element contextElm, Resource resource) throws WvcmException
contextElm
- an Elementresource
- a Resource
WvcmException
- if the resource has an invalid URI locationprotected void createHrefElement(org.jdom.Element contextElm, java.lang.String resourcePath) throws WvcmException
contextElm
- an ElementresourcePath
- a String
WvcmException
- if the resource has an invalid URI locationprotected void createHrefElements(org.jdom.Element contextElm, java.util.List resourceList) throws WvcmException
contextElm
- an ElementresourceList
- a List of Resource instances
WvcmException
- if a resource has an invalid URI location
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |