amber.server.manager.handler
Interface HandlerInterface
- All Known Implementing Classes:
- Application, BaseHandler, Browser
- public interface HandlerInterface
This interface is the base requirements for a class to act as a connection
handler for incoming Amber connections.
- See Also:
Core
|
Method Summary |
void |
connectToClient(java.net.Socket socket,
Packet initPacket,
AmberInputStream dataDecoder,
int type)
This function handles the connection requirements for the specified
incoming connection. |
void |
setCore(Core core)
This sets the parent Core object. |
void |
setLogger(Log logger)
This sets the primary logging object. |
connectToClient
public void connectToClient(java.net.Socket socket,
Packet initPacket,
AmberInputStream dataDecoder,
int type)
throws java.io.IOException
- This function handles the connection requirements for the specified
incoming connection.
In this case the connection is from a Browser based system.
- Parameters:
socket - Socket of the incoming connection.initPacket - The Packet which is first sent by the page when the connection is opened.dataDecoder - AmberInputStream with the packet parameters.type - The type of connection that is attempting to match the packet.
This matches the constants in ListenerThread.- Throws:
java.io.IOException - containing decoding errors.
setCore
public void setCore(Core core)
- This sets the parent Core object.
- Parameters:
core - Core system.
setLogger
public void setLogger(Log logger)
- This sets the primary logging object.
- Parameters:
logger - Log primary logger.
Copyright © 2002 Clearfield Research Ltd. All Rights Reserved.