|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.bea.wlrt.ede.impl.AbstractEventSource | +--com.bea.wlrt.ede.impl.AbstractStage | +--com.bea.wlrt.ede.impl.AbstractAdapter | +--com.bea.wlrt.adapter.defaultprovider.SocketAdapterImpl
Creates a server connection and waits for incoming client connections. Inherited classes must provide a listener to handle read/write for the connection.
Constructor Summary | |
protected |
SocketAdapterImpl(String id,
String applicationId)
|
protected |
SocketAdapterImpl(String id,
String applicationId,
int port)
|
Method Summary | |
void |
connectionCreated(Connection conn)
This method is called each time a new client connection is established. |
void |
destroy()
|
int |
getPort()
|
protected abstract Connection.Listener |
getReadListener(Connection conn)
Returns a listener which will handle reading and writing for this connection |
protected ServerConnection |
getServerConnection()
|
void |
onEvent(List newEvents)
|
void |
setPort(int port)
|
protected void |
setupServerConnection(int port)
|
Methods inherited from class com.bea.wlrt.ede.impl.AbstractAdapter |
getWorkManager,
setSessionManager |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
protected SocketAdapterImpl(String id, String applicationId)
protected SocketAdapterImpl(String id, String applicationId, int port)
Method Detail |
protected void setupServerConnection(int port)
public void onEvent(List newEvents) throws RejectEventException
protected ServerConnection getServerConnection()
public int getPort()
public void setPort(int port)
public void connectionCreated(Connection conn)
public void destroy() throws Exception
protected abstract Connection.Listener getReadListener(Connection conn)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |