net.officefloor.plugin.socket.server
Interface CommunicationProtocol<CH extends ConnectionHandler>

All Known Implementing Classes:
HttpCommunicationProtocol, SslCommunicationProtocol, TcpCommunicationProtocol

public interface CommunicationProtocol<CH extends ConnectionHandler>

Provides implementation of a communication protocol.

Author:
Daniel Sagenschneider

Method Summary
 ServerSocketHandler<CH> createServerSocketHandler(AbstractAsyncManagedObjectSource.MetaDataContext<None,Indexed> context, BufferSquirtFactory bufferSquirtFactory)
          Creates the ServerSocketHandler.
 void loadSpecification(AbstractAsyncManagedObjectSource.SpecificationContext context)
          Loads any specifications for this communication protocol.
 

Method Detail

loadSpecification

void loadSpecification(AbstractAsyncManagedObjectSource.SpecificationContext context)
Loads any specifications for this communication protocol.

Parameters:
context - AbstractAsyncManagedObjectSource.SpecificationContext.

createServerSocketHandler

ServerSocketHandler<CH> createServerSocketHandler(AbstractAsyncManagedObjectSource.MetaDataContext<None,Indexed> context,
                                                  BufferSquirtFactory bufferSquirtFactory)
                                                                            throws Exception
Creates the ServerSocketHandler.

Parameters:
context - AbstractAsyncManagedObjectSource.MetaDataContext.
bufferSquirtFactory - BufferSquirtFactory.
Throws:
Exception - If fails to create the ServerSocketHandler.


Copyright © 2005-2011. All Rights Reserved.