|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.beep4j.ProfileInfo
public final class ProfileInfo
Represents a profile as seen inside a start channel request.
Constructor Summary | |
---|---|
ProfileInfo(java.lang.String uri)
|
|
ProfileInfo(java.lang.String uri,
byte[] data)
|
|
ProfileInfo(java.lang.String uri,
java.lang.String content)
|
Method Summary | |
---|---|
void |
appendTo(java.lang.StringBuilder builder)
Append the ProfileInfo content to the StringBuilder. |
byte[] |
getBinaryContent()
Tries to retrieve the binary content. |
java.lang.String |
getContent()
Tries to retrieve a the textual content. |
java.lang.String |
getUri()
The profile URI, which should uniquely identify the profile. |
boolean |
hasContent()
Determines whether this ProfileInfo has content. |
boolean |
isBase64Encoded()
Determines whether the body was (or should be) base 64 encoded. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ProfileInfo(java.lang.String uri)
public ProfileInfo(java.lang.String uri, byte[] data)
public ProfileInfo(java.lang.String uri, java.lang.String content)
Method Detail |
---|
public final boolean hasContent()
public final java.lang.String getUri()
public final boolean isBase64Encoded()
public final java.lang.String getContent()
java.lang.IllegalStateException
- if there is no textual contentpublic final byte[] getBinaryContent()
java.lang.IllegalStateException
- if there is no binary datapublic final void appendTo(java.lang.StringBuilder builder)
appendable
- the StringBuilder to which the content is appendedpublic java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |