issrg.utils.webdav
Class CustomiseWebDAV

java.lang.Object
  extended by issrg.utils.webdav.CustomiseWebDAV

public class CustomiseWebDAV
extends java.lang.Object

This class should be used to customise the components WebDAV uses.

These include:

CustomiseWebDAV and the use of WebDAVRepository should be in a synchronized block, so the other threads do not modify your settings.

Version:
1.0
Author:
Linying Su

Constructor Summary
CustomiseWebDAV()
           
 
Method Summary
static boolean getKeepAlive()
          This method returns the keep alive setting.
static int getReceiveBufferSize()
          This method returns the receive buffer size setting.
static int getSendBufferSize()
          This method returns the send buffer size setting.
static int getTimeout()
          This method returns the timeout setting in milliseconds.
static void setKeepAlive(boolean flag)
          Enable/Disable keep the socket alive.
static void setReceiveBufferSize(int size)
          Sets the receive buffer size to the parameter size.
static void setSendBufferSize(int size)
          Sets the send buffer size to the parameter size.
static void setTimeout(int amount)
          Sets the send buffer size to the parameter amount.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CustomiseWebDAV

public CustomiseWebDAV()
Method Detail

getKeepAlive

public static boolean getKeepAlive()
This method returns the keep alive setting.


getReceiveBufferSize

public static int getReceiveBufferSize()
This method returns the receive buffer size setting.


getSendBufferSize

public static int getSendBufferSize()
This method returns the send buffer size setting.


getTimeout

public static int getTimeout()
This method returns the timeout setting in milliseconds.


setKeepAlive

public static void setKeepAlive(boolean flag)
Enable/Disable keep the socket alive.

Parameters:
flag - - if it is true, the keep alive is enable; otherwise it is disable.

setReceiveBufferSize

public static void setReceiveBufferSize(int size)
Sets the receive buffer size to the parameter size.

Parameters:
size - - how many bytes are used for this buffere.

setSendBufferSize

public static void setSendBufferSize(int size)
Sets the send buffer size to the parameter size.

Parameters:
size - - how many bytes are used for this buffere.

setTimeout

public static void setTimeout(int amount)
Sets the send buffer size to the parameter amount.

Parameters:
amount - - how many bytes are used for this buffere.