|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Field Summary | |
static java.lang.String |
BAD_REQUEST
It should be used for rejecting the stream if the stream information is not statisfactory. |
static java.lang.String |
METHOD_NOT_SUPPORTED
It should be used for rejecting the stream if the Available methods are not supported. |
Method Summary | |
void |
abort()
This method should be used to abort the ContentStream. |
void |
accept(java.lang.String preferredMethod,
ReceiverStreamingProfile profile,
ContentStreamListener listener)
This method should be used to accept the ContentStream. |
java.lang.String[] |
getSupportedMethods()
Lists the supported methods for streaming the data |
long |
getTransferredBytes()
This method returns the number of bytes transferred through the stream. |
void |
reject(java.lang.String reason)
This method should be used to reject the ContentStream. |
Field Detail |
public static final java.lang.String METHOD_NOT_SUPPORTED
public static final java.lang.String BAD_REQUEST
Method Detail |
public java.lang.String[] getSupportedMethods()
public void accept(java.lang.String preferredMethod, ReceiverStreamingProfile profile, ContentStreamListener listener) throws CollaborationException
preferredMethod
- The preferred method as defined in StreamingServiceprofile
- The updated ReceiverStreamingProfile.
java.lang.IllegalStateException
- if the stream was already accepted or rejected
java.lang.IllegalArgumentException
- if the preferred method is not one of the supported methods
CollaborationException
public void reject(java.lang.String reason) throws CollaborationException
reason
- The reason for rejecting the stream as defined in ContentStream. If the
reason is not specified in ContentStream then a custom message should be used.
java.lang.IllegalStateException
- if the stream was already accepted or rejected
CollaborationException
public void abort() throws CollaborationException
java.lang.IllegalStateException
- if the stream was already closed
CollaborationException
public long getTransferredBytes()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |