Interface UserData
-
public interface UserData
Java type for the UserData AVP type which is OctetString and contains an XML document with the requested user data in a User-Data-Answer or new user data in a Profile-Update-Request/Push-Notification-Request messages.- Author:
- Open Cloud
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description byte[]
getBytes()
Return the AVP as a byte array.InputStream
getInputStream()
Return an InputStream that the data can be read from.ShData
getShData()
Return the AVP unmarshalled into an object graph rooted by an ShData instance.ShData
getShDataRelease11()
Return the AVP unmarshalled into an object graph rooted by an Release 11 ShData instance.String
getString()
Return the AVP as a String.
-
-
-
Method Detail
-
getBytes
byte[] getBytes()
Return the AVP as a byte array.
-
getString
String getString()
Return the AVP as a String.
-
getShData
ShData getShData() throws UserDataException, IllegalArgumentException
Return the AVP unmarshalled into an object graph rooted by an ShData instance.- Throws:
UserDataException
- if an error occurred unmarshalling the XML documentIllegalArgumentException
- if the provider in use does not support the default ShData type
-
getShDataRelease11
ShData getShDataRelease11() throws UserDataException, IllegalArgumentException
Return the AVP unmarshalled into an object graph rooted by an Release 11 ShData instance.- Throws:
UserDataException
- if an error occurred unmarshalling the XML documentIllegalArgumentException
- if the provider in use does not support the Release 11 ShData type
-
getInputStream
InputStream getInputStream() throws IOException
Return an InputStream that the data can be read from.- Throws:
IOException
- if an error occurred
-
-