diff options
author | Gurmeen Bindra <gurmeen.bindra@isode.com> | 2012-04-19 09:13:47 (GMT) |
---|---|---|
committer | Kevin Smith <git@kismith.co.uk> | 2012-04-27 11:06:22 (GMT) |
commit | e2f24c6930603dbd016a6530f7d12b08c97ea900 (patch) | |
tree | bcdcf5e98616db5859775b1a91a6200add5e4fc2 /src/com/isode/stroke/elements/PrivateStorage.java | |
parent | 9217dc0c6033f9d70c87ba4a84f5bbafe2c1e6ac (diff) | |
download | stroke-e2f24c6930603dbd016a6530f7d12b08c97ea900.zip stroke-e2f24c6930603dbd016a6530f7d12b08c97ea900.tar.bz2 |
Port Classes for Storage/Private Storage
This patch ports the classes for Storage, PrivateStorage and PrivateStorage
requests from Swiften to Stroke.
Test-information:
junit test for GetPrivateStorageRequestTest is also ported and tested
Diffstat (limited to 'src/com/isode/stroke/elements/PrivateStorage.java')
-rw-r--r-- | src/com/isode/stroke/elements/PrivateStorage.java | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/src/com/isode/stroke/elements/PrivateStorage.java b/src/com/isode/stroke/elements/PrivateStorage.java new file mode 100644 index 0000000..171e56e --- /dev/null +++ b/src/com/isode/stroke/elements/PrivateStorage.java @@ -0,0 +1,43 @@ +/* + * Copyright (c) 2012, Isode Limited, London, England. + * All rights reserved. + */ +/* + * Copyright (c) 2010, Remko Tronçon. + * All rights reserved. + */ +package com.isode.stroke.elements; + +/** + * Class representing Private XML Storage for storing arbitrary private + * user data on User's server(such as XEP-0048's bookmarks) + * + */ +public class PrivateStorage extends Payload { + + /** + * Constructor + * @param p payload, not null + */ + public PrivateStorage(Payload p) { + this.payload = p; + } + + /** + * Get payload + * @return payload, not null + */ + public Payload getPayload() { + return payload; + } + + /** + * Set payload + * @param p payload, not null + */ + public void setPayload(Payload p) { + payload = p; + } + + private Payload payload; +} |