Skip navigation links

Oracle Application Server
Web Services Java API Reference
10g Release 3 (10.1.3.1.0)

B28977-01


oracle.webservices.attachments
Interface IncomingAttachments


public interface IncomingAttachments

An object collecting incoming (server request or client response) streaming attachments.


Method Summary
 void close()
          Close the incoming attachments stream.
 boolean hasNextAttachment()
          Check if there are more attachments in this request/response.
 Attachment nextAttachment()
          Returns an Attachment object for the next attachment on the wire.

 

Method Detail

close

void close()
           throws IOException
Close the incoming attachments stream. This must be called once all attachments are read to close the connection.
Throws:
IOException

hasNextAttachment

boolean hasNextAttachment()
                          throws IOException
Check if there are more attachments in this request/response. Returns true if there are remaining, unread attachments, false otheriwse.
Returns:
true if there are attachments to be read
Throws:
IOException

nextAttachment

Attachment nextAttachment()
                          throws IOException
Returns an Attachment object for the next attachment on the wire. If there are no more attachments, throws an IOException.
Returns:
The next Attachment object
Throws:
IOException

Skip navigation links

Copyright © 2006, Oracle. All Rights Reserved.