|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.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 ConnectionResourceConnectionResource.getReader()public IChatWriter getWriter()
ConnectionResource
getWriter in interface ConnectionResourceConnectionResource.getWriter()
public void acquire()
throws IChatException,
java.io.IOException
IChatResource
acquire in interface IChatResourceIChatException
java.io.IOExceptionIChatResource.acquire()
public void release()
throws IChatException,
java.io.IOException
IChatResource
release in interface IChatResourceIChatException
java.io.IOExceptionIChatResource.release()public boolean isConnected()
ConnectionResource
isConnected in interface ConnectionResourceConnectionResource.isConnected()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||