eXo JCR :: Open Office WebDav plugin 1.15.8-GA

org.exoplatform.applications.ooplugin.client
Class DavCommand

java.lang.Object
  extended by org.exoplatform.applications.ooplugin.client.DavCommand
Direct Known Subclasses:
MultistatusCommand

public abstract class DavCommand
extends Object

Created by The eXo Platform SAS Author.

Version:
$Id: $
Author:
Vitaly Guly

Field Summary
static String AUTH_BASIC
           
protected  HttpClient client
           
protected  String commandName
           
protected  WebDavContext context
           
protected  InputStream inStream
           
protected  byte[] requestDataBytes
           
protected  String resourcePath
           
protected  byte[] responseDataBytes
           
 
Constructor Summary
DavCommand(WebDavContext context)
           
 
Method Summary
 int execute()
           
 void finalExecute()
           
 byte[] getResponseDataBuffer()
           
 String getResponseHeader(String headerName)
           
 ArrayList<String> getResponseHeadersNames()
           
 void setLockToken(String lockToken)
           
 void setRange(int rangeStart)
           
 void setRange(int rangeStart, int rangeEnd)
           
 void setRequestDataBuffer(byte[] requestDataBytes)
           
 void setRequestInputStream(InputStream inStream, long streamLength)
           
 void setResourcePath(String resourcePath)
           
 void setXmlEnabled(boolean enableXml)
           
 Element toXml(Document xmlDocument)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

AUTH_BASIC

public static final String AUTH_BASIC
See Also:
Constant Field Values

commandName

protected String commandName

context

protected WebDavContext context

resourcePath

protected String resourcePath

client

protected HttpClient client

requestDataBytes

protected byte[] requestDataBytes

inStream

protected InputStream inStream

responseDataBytes

protected byte[] responseDataBytes
Constructor Detail

DavCommand

public DavCommand(WebDavContext context)
           throws Exception
Throws:
Exception
Method Detail

setResourcePath

public void setResourcePath(String resourcePath)

setRange

public void setRange(int rangeStart)

setRange

public void setRange(int rangeStart,
                     int rangeEnd)

setRequestDataBuffer

public void setRequestDataBuffer(byte[] requestDataBytes)

setRequestInputStream

public void setRequestInputStream(InputStream inStream,
                                  long streamLength)
                           throws Exception
Throws:
Exception

setXmlEnabled

public void setXmlEnabled(boolean enableXml)

setLockToken

public void setLockToken(String lockToken)
                  throws Exception
Throws:
Exception

getResponseHeader

public String getResponseHeader(String headerName)

getResponseHeadersNames

public ArrayList<String> getResponseHeadersNames()

getResponseDataBuffer

public byte[] getResponseDataBuffer()

execute

public int execute()
            throws Exception
Throws:
Exception

finalExecute

public void finalExecute()

toXml

public Element toXml(Document xmlDocument)

eXo JCR :: Open Office WebDav plugin 1.15.8-GA

Copyright © 2014 eXo Platform SAS. All Rights Reserved.