|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.buildforge.services.client.api.APIClientBuffer
com.buildforge.services.client.api.SecureAPIClientBuffer
public class SecureAPIClientBuffer
This class wraps a socket channel with the IBufferedConnection interface using the client-side of an SSLEngine so that it can be used by the API protocol for secure client/server communications.
Method Summary | |
---|---|
void |
close()
Shuts down the connection, after which time it should no longer be used. |
int |
fill(int want)
Requests that the read buffer be refilled. |
void |
flush()
Finishes off the current write buffer and tries to send it. |
Methods inherited from class com.buildforge.services.client.api.APIClientBuffer |
---|
getReadBuffer, getStrict, getWriteBuffer, setCallback, setStrict |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public int fill(int want) throws java.io.IOException
IBufferedConnection
fill
in interface IBufferedConnection
fill
in class APIClientBuffer
want
- the number of bytes that the caller would like to be
read into the buffer before returning control to the caller
java.io.IOException
- if an I/O error occurs or the connection closes
before the requested number of bytes have been readpublic void flush() throws java.io.IOException
IBufferedConnection
flush
in interface IBufferedConnection
flush
in class APIClientBuffer
java.io.IOException
- if an I/O error occurspublic void close() throws java.io.IOException
IBufferedConnection
close
in interface IBufferedConnection
close
in class APIClientBuffer
java.io.IOException
- if an I/O error occurs
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |