|
LimeWire Consolidated API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ConnectionDispatcher
Defines the requirements for classes that forward incoming connections to
ConnectionAcceptors.
| Method Summary | |
|---|---|
void |
addConnectionAcceptor(ConnectionAcceptor acceptor,
boolean localOnly,
String... words)
Associates the given SocketAcceptor with the given words. |
void |
dispatch(String word,
Socket client,
boolean newThread)
Dispatches this incoming connection to the appropriate manager, depending on the word that was read. |
int |
getMaximumWordSize()
Retrieves the maximum size a word can have. |
boolean |
isValidProtocolWord(String word)
Determines if the word is valid for the understood protocols. |
void |
removeConnectionAcceptor(String... words)
Removes any ConnectionAcceptors from being associated with the given words. |
| Method Detail |
|---|
int getMaximumWordSize()
void addConnectionAcceptor(ConnectionAcceptor acceptor,
boolean localOnly,
String... words)
acceptor - The SocketAcceptor to call acceptConnection onlocalOnly - True if localhost connections are required, false if none allowedwords - The list of words to associate with this SocketAcceptorvoid removeConnectionAcceptor(String... words)
boolean isValidProtocolWord(String word)
void dispatch(String word,
Socket client,
boolean newThread)
word - The word associated with this Socketclient - Socket to use for dispatchnewThread - whether or not a new thread is necessary when dispatching
to a blocking protocol.
|
LimeWire Consolidated API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||