Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## network
Class ProtocolDelete

    java.lang.Object
      network.ProtocolDelete

    public class ProtocolDelete

extends java.lang.Object

Library for detete protocol. Methods required to parse and build detetion requests and responses are provided. All messages are expected to be in XML format.

Field Summary
`static java.lang.String` | `ROOT`

Constructor Summary
`ProtocolDelete()`

Method Summary
`static byte[]` | `buildRequest(BackupMetaContainer meta)` Build request to delete file identified by backup metadata.
`static BackupMetaContainer` | `getMeta(org.dom4j.Document msg)` Parses request to get metadata of file requested to be deleted.

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Field Detail

### ROOT

    public static java.lang.String ROOT

Constructor Detail

### ProtocolDelete

    public ProtocolDelete()

Method Detail

### buildRequest

    public static byte[] buildRequest(BackupMetaContainer meta)

  Build request to delete file identified by backup metadata.

  Parameters:
    `meta` - metadata of file to be backed up
  Returns:
    byte array to be placed directly into UDP packet

### getMeta

    public static BackupMetaContainer getMeta(org.dom4j.Document msg)

  Parses request to get metadata of file requested to be deleted.

  Parameters:
    `msg` - Xml document received as request over network
  Returns:
    metadata container of requested backup

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD