A B C D E G H I L M N O P R S T V W

A

AbstractPipedProtocolHandler - class org.szegedi.nioserver.protocols.AbstractPipedProtocolHandler.
 
AbstractPipedProtocolHandler(SocketChannel, ByteBufferPool) - Constructor for class org.szegedi.nioserver.protocols.AbstractPipedProtocolHandler
 
Adapter - interface org.szegedi.nioserver.protocols.http.Adapter.
Adapter interface is a bridging between HttpProtocolHandler and a concrete facility that processes the request and generates a response (like a servlet container implementation, or an implementation that serves static files from the filesystem, and so on).
autoTransferTo() - Method in class org.szegedi.nbpipe.NonblockingPipe
Transfers as many bytes are possible from this pipe's buffer to the channel specified in the call to setAutoWriteChannel.
available() - Method in class org.szegedi.nbpipe.NonblockingPipe
Returns the number of bytes currently available in the pipe.

B

ByteBufferPool - interface org.szegedi.nbpipe.ByteBufferPool.
A ByteBufferPool is a facility for dinamically managing a large number of byte buffers.

C

ChannelWriteListener - interface org.szegedi.nbpipe.ChannelWriteListener.
 
clear() - Method in class org.szegedi.nbpipe.NonblockingPipe
 
closeForWriting() - Method in class org.szegedi.nbpipe.NonblockingPipe
Called to signal that no more data will be transferred from an external channel to the pipe.
createOutputPipe(ByteBufferPool) - Method in class org.szegedi.nioserver.protocols.AbstractPipedProtocolHandler
 
createProtocolHandler(SocketChannel) - Method in interface org.szegedi.nioserver.ProtocolHandlerFactory
Called whenever a connection is accepted on a server socket for which this factory was registered.
createProtocolHandler(SocketChannel) - Method in class org.szegedi.nioserver.protocols.EchoProtocolHandlerFactory
 
createProtocolHandler(SocketChannel) - Method in class org.szegedi.nioserver.protocols.http.HttpProtocolHandlerFactory
 

D

DEBUG - Static variable in interface org.szegedi.nioserver.Log
 
doEndRead() - Method in class org.szegedi.nioserver.protocols.AbstractPipedProtocolHandler
 
doEndWrite() - Method in class org.szegedi.nioserver.protocols.AbstractPipedProtocolHandler
 
doRead() - Method in class org.szegedi.nioserver.protocols.AbstractPipedProtocolHandler
 

E

EchoProtocolHandlerFactory - class org.szegedi.nioserver.protocols.EchoProtocolHandlerFactory.
 
EchoProtocolHandlerFactory(ByteBufferPool) - Constructor for class org.szegedi.nioserver.protocols.EchoProtocolHandlerFactory
 
ERROR - Static variable in interface org.szegedi.nioserver.Log
 

G

getBacklog() - Method in class org.szegedi.nioserver.ServerSocketConfiguration
 
getBufferType(ByteBuffer) - Method in class org.szegedi.nbpipe.GlobalByteBufferPool
 
getBufferType(ByteBuffer) - Method in interface org.szegedi.nbpipe.ByteBufferPool
 
getContentLength() - Method in interface org.szegedi.nioserver.protocols.http.NioHttpRequest
Retrieves the length of the request body.
getFileBuffer() - Method in class org.szegedi.nbpipe.GlobalByteBufferPool
 
getFileBuffer() - Method in interface org.szegedi.nbpipe.ByteBufferPool
Returns a buffer from this pool.
getHeader(String) - Method in interface org.szegedi.nioserver.protocols.http.NioHttpRequest
Retrieves the value of the specified request header.
getHeaderNames() - Method in interface org.szegedi.nioserver.protocols.http.NioHttpRequest
Retrieves an iterator that returns all header names in the request
getInputStream() - Method in class org.szegedi.nbpipe.NonblockingPipe
Returns an input stream through which the contents of the pipe can be read.
getMemoryBuffer() - Method in class org.szegedi.nbpipe.GlobalByteBufferPool
 
getMemoryBuffer() - Method in interface org.szegedi.nbpipe.ByteBufferPool
Returns a buffer from this pool.
getMethod() - Method in interface org.szegedi.nioserver.protocols.http.NioHttpRequest
Retrieves the request method.
getOutputStream() - Method in class org.szegedi.nbpipe.NonblockingPipe
Returns an output stream through which the contents of the pipe can be written.
getProtocol() - Method in interface org.szegedi.nioserver.protocols.http.NioHttpRequest
Retrieves the request protocol.
getReceiveBufferSize() - Method in class org.szegedi.nioserver.ServerSocketConfiguration
 
getRequestBodyInputStream() - Method in interface org.szegedi.nioserver.protocols.http.NioHttpRequest
Retrieves an input stream suitable for reading the request body.
getResponseOutputStream() - Method in interface org.szegedi.nioserver.protocols.http.NioHttpRequest
Retrieves the output stream to which the response should be written.
getReuseAddress() - Method in class org.szegedi.nioserver.ServerSocketConfiguration
 
getSocketAddress() - Method in class org.szegedi.nioserver.Service
Returns the socket address used by this service.
getSocketAddress() - Method in class org.szegedi.nioserver.ServerSocketConfiguration
 
getURI() - Method in interface org.szegedi.nioserver.protocols.http.NioHttpRequest
Retrieves the request URI.
GlobalByteBufferPool - class org.szegedi.nbpipe.GlobalByteBufferPool.
 
GlobalByteBufferPool(int, int, File) - Constructor for class org.szegedi.nbpipe.GlobalByteBufferPool
 

H

HttpProtocolHandlerFactory - class org.szegedi.nioserver.protocols.http.HttpProtocolHandlerFactory.
 
HttpProtocolHandlerFactory(ByteBufferPool, Adapter) - Constructor for class org.szegedi.nioserver.protocols.http.HttpProtocolHandlerFactory
 

I

INFO - Static variable in interface org.szegedi.nioserver.Log
 
ioExceptionRaised(IOException) - Method in interface org.szegedi.nbpipe.ChannelWriteListener
Called after writing to the channel is interrupted by an IOException.
isBlockingWhenExhausted() - Method in class org.szegedi.nbpipe.GlobalByteBufferPool
 
isExhausted() - Method in class org.szegedi.nbpipe.NonblockingPipe
Returns true if the pipe contains no data, and is closed for writing.

L

LEVELNAMES - Static variable in interface org.szegedi.nioserver.Log
 
Log - interface org.szegedi.nioserver.Log.
Interface for NioServer logging adapters.
log(String, int) - Method in class org.szegedi.nioserver.NioServer
 
log(String, int) - Method in interface org.szegedi.nioserver.Log
 
log(String, Throwable, int) - Method in class org.szegedi.nioserver.NioServer
 
log(String, Throwable, int) - Method in interface org.szegedi.nioserver.Log
 

M

main(String[]) - Static method in class org.szegedi.nioserver.TestPlatform
 

N

NioHttpRequest - interface org.szegedi.nioserver.protocols.http.NioHttpRequest.
The interface that represents the parsed request as passed to an Adapter adapter for processing.
NioServer - class org.szegedi.nioserver.NioServer.
The runtime class for non-blocking servers.
NioServer() - Constructor for class org.szegedi.nioserver.NioServer
Creates a new non-blocking server that will use one permanent thread for accepting connections and two permanent thread for read/write operations.
NioServer(int, int) - Constructor for class org.szegedi.nioserver.NioServer
Creates a new non-blocking server that will use the specified number of permanent threads for accepting connections and for read/write operations.
NonblockingPipe - class org.szegedi.nbpipe.NonblockingPipe.
NonblockingPipe is a device for bridging between one-connection-per-thread code and the multiple-connections-per-thread (nio) code.
NonblockingPipe(ByteBufferPool) - Constructor for class org.szegedi.nbpipe.NonblockingPipe
 

O

org.szegedi.nbpipe - package org.szegedi.nbpipe
 
org.szegedi.nioserver - package org.szegedi.nioserver
 
org.szegedi.nioserver.protocols - package org.szegedi.nioserver.protocols
 
org.szegedi.nioserver.protocols.http - package org.szegedi.nioserver.protocols.http
 
outputPipe - Variable in class org.szegedi.nioserver.protocols.AbstractPipedProtocolHandler
 

P

ProtocolHandler - interface org.szegedi.nioserver.ProtocolHandler.
Interface for objects that service read and write operations on a socket for a single connection.
ProtocolHandlerFactory - interface org.szegedi.nioserver.ProtocolHandlerFactory.
An interface for factories of protocol handlers.
putBuffer(ByteBuffer) - Method in class org.szegedi.nbpipe.GlobalByteBufferPool
 
putBuffer(ByteBuffer) - Method in interface org.szegedi.nbpipe.ByteBufferPool
Returns a buffer to this pool.

R

registerService(ProtocolHandlerFactory, ServerSocketConfiguration) - Method in class org.szegedi.nioserver.NioServer
Adds a service to this server.

S

ServerSocketConfiguration - class org.szegedi.nioserver.ServerSocketConfiguration.
Specifies the characteristics of a server socket.
ServerSocketConfiguration() - Constructor for class org.szegedi.nioserver.ServerSocketConfiguration
 
Service - class org.szegedi.nioserver.Service.
The Service class represents each service that was registered with a NioServer.
serviceRequest(NioHttpRequest) - Method in interface org.szegedi.nioserver.protocols.http.Adapter
 
setAutoWriteChannel(WritableByteChannel, ChannelWriteListener) - Method in class org.szegedi.nbpipe.NonblockingPipe
Sets a writable byte channel to which all writes on the output stream are automatically transferred whenever an internal pipe buffer is ready.
setBacklog(int) - Method in class org.szegedi.nioserver.ServerSocketConfiguration
 
setBlockingWhenExhausted(boolean) - Method in class org.szegedi.nbpipe.GlobalByteBufferPool
 
setReceiveBufferSize(int) - Method in class org.szegedi.nioserver.ServerSocketConfiguration
 
setReuseAddress(boolean) - Method in class org.szegedi.nioserver.ServerSocketConfiguration
 
setSocketAddress(SocketAddress) - Method in class org.szegedi.nioserver.ServerSocketConfiguration
 
setUp() - Method in class org.szegedi.nbpipe.TestNonblockingPipe
 
setUp() - Method in class org.szegedi.nioserver.TestNioServer
 
socketChannel - Variable in class org.szegedi.nioserver.protocols.AbstractPipedProtocolHandler
 
stop() - Method in class org.szegedi.nioserver.Service
Stops the service.
stop() - Method in class org.szegedi.nioserver.NioServer
Stops this server.

T

testBlocking() - Method in class org.szegedi.nbpipe.TestGlobalByteBufferPool
 
testChunkedChannelToChannelTransfer() - Method in class org.szegedi.nbpipe.TestNonblockingPipe
 
testChunkedStreamToStreamTransfer() - Method in class org.szegedi.nbpipe.TestNonblockingPipe
 
testClear() - Method in class org.szegedi.nbpipe.TestGlobalByteBufferPool
 
testClosing() - Method in class org.szegedi.nioserver.TestNioServer
 
testClosingSingleChannel() - Method in class org.szegedi.nioserver.TestNioServer
 
testClosingTwoChannels() - Method in class org.szegedi.nioserver.TestNioServer
 
testConcurrentChannelToChannelTransfer() - Method in class org.szegedi.nbpipe.TestNonblockingPipe
 
testConcurrentStreamToChannelTransfer() - Method in class org.szegedi.nbpipe.TestNonblockingPipe
 
testConcurrentStreamToStreamTransfer() - Method in class org.szegedi.nbpipe.TestNonblockingPipe
 
testFallbackToFile() - Method in class org.szegedi.nbpipe.TestGlobalByteBufferPool
 
testFallbackToHeap() - Method in class org.szegedi.nbpipe.TestGlobalByteBufferPool
 
testFallbackToMemory() - Method in class org.szegedi.nbpipe.TestGlobalByteBufferPool
 
TestGlobalByteBufferPool - class org.szegedi.nbpipe.TestGlobalByteBufferPool.
The JUnit test suite for testing GlobalByteBufferPool functionality.
TestGlobalByteBufferPool(String) - Constructor for class org.szegedi.nbpipe.TestGlobalByteBufferPool
 
testLifoFile() - Method in class org.szegedi.nbpipe.TestGlobalByteBufferPool
 
testLifoMemory() - Method in class org.szegedi.nbpipe.TestGlobalByteBufferPool
 
TestNioServer - class org.szegedi.nioserver.TestNioServer.
The JUnit test suite for testing NioServer functionality.
TestNioServer(String) - Constructor for class org.szegedi.nioserver.TestNioServer
 
TestNonblockingPipe - class org.szegedi.nbpipe.TestNonblockingPipe.
The JUnit test suite for testing NonblockingPipe functionality.
TestNonblockingPipe(String) - Constructor for class org.szegedi.nbpipe.TestNonblockingPipe
 
TestPlatform - class org.szegedi.nioserver.TestPlatform.
 
TestPlatform() - Constructor for class org.szegedi.nioserver.TestPlatform
 
testSequentialChannelToChannelTransfer() - Method in class org.szegedi.nbpipe.TestNonblockingPipe
 
testSequentialStreamToStreamTransfer() - Method in class org.szegedi.nbpipe.TestNonblockingPipe
 
testSetUp() - Method in class org.szegedi.nioserver.TestNioServer
 
testSingleByteEcho() - Method in class org.szegedi.nioserver.TestNioServer
 
testSliceFile() - Method in class org.szegedi.nbpipe.TestGlobalByteBufferPool
 
testSliceMemory() - Method in class org.szegedi.nbpipe.TestGlobalByteBufferPool
 
transferFrom(ByteBuffer, int) - Method in class org.szegedi.nbpipe.NonblockingPipe
Transfers as many bytes are possible from the specified byte buffer to this pipe's buffer.
transferFrom(ReadableByteChannel) - Method in class org.szegedi.nbpipe.NonblockingPipe
 
transferFrom(ReadableByteChannel, int) - Method in class org.szegedi.nbpipe.NonblockingPipe
Transfers as many bytes are possible from the specified channel to this pipe's buffer.
tryToRead() - Method in interface org.szegedi.nioserver.ProtocolHandler
Called when the socket channel is reported to be ready for reading.
tryToRead() - Method in class org.szegedi.nioserver.protocols.AbstractPipedProtocolHandler
 
tryToWrite() - Method in interface org.szegedi.nioserver.ProtocolHandler
Called when the socket channel is reported to be ready for writing.
tryToWrite() - Method in class org.szegedi.nioserver.protocols.AbstractPipedProtocolHandler
 
TYPE_FILE - Static variable in interface org.szegedi.nbpipe.ByteBufferPool
 
TYPE_MEMORY - Static variable in interface org.szegedi.nbpipe.ByteBufferPool
 
TYPE_UNKNOWN - Static variable in interface org.szegedi.nbpipe.ByteBufferPool
 

V

validOps() - Method in interface org.szegedi.nioserver.ProtocolHandler
Returns a bit mask of SelectionKey.OP_XXX values that represent the operations this handler supports.
validOps() - Method in class org.szegedi.nioserver.protocols.AbstractPipedProtocolHandler
 

W

WARNING - Static variable in interface org.szegedi.nioserver.Log
 

A B C D E G H I L M N O P R S T V W