|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.web_visage.ichat.DefaultConnectionResource
public class DefaultConnectionResource
Sychronous socket based connection resource.
Constructor Summary | |
---|---|
DefaultConnectionResource(IChatMessageFactory messageFactory,
java.lang.String serverIp,
int serverPort)
Constructor. |
Method Summary | |
---|---|
void |
acquire()
Acquires new resource. |
IChatReader |
getReader()
Returns a reader for the resource. |
IChatWriter |
getWriter()
Returns a writer for the resource. |
boolean |
isConnected()
Checks whether resource is connected. |
void |
release()
Releases the resource and performs necessary cleanup. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultConnectionResource(IChatMessageFactory messageFactory, java.lang.String serverIp, int serverPort)
serverIp
- serverPort
-
java.io.IOException
java.net.UnknownHostException
Method Detail |
---|
public IChatReader getReader()
ConnectionResource
getReader
in interface ConnectionResource
ConnectionResource.getReader()
public IChatWriter getWriter()
ConnectionResource
getWriter
in interface ConnectionResource
ConnectionResource.getWriter()
public void acquire() throws IChatException, java.io.IOException
IChatResource
acquire
in interface IChatResource
IChatException
java.io.IOException
IChatResource.acquire()
public void release() throws IChatException, java.io.IOException
IChatResource
release
in interface IChatResource
IChatException
java.io.IOException
IChatResource.release()
public boolean isConnected()
ConnectionResource
isConnected
in interface ConnectionResource
ConnectionResource.isConnected()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |