C D G R S 

C

closeConnectionImmediately() - Method in interface com.meterware.simpleserver.Responder
Closes the connection
com.meterware.simpleserver - package com.meterware.simpleserver
 
connectionAccepted(SocketChannel) - Method in interface com.meterware.simpleserver.ServerListener
Invoked when the server accepts a connection.
create(ServerListener) - Static method in class com.meterware.simpleserver.SimpleServer
Creates a server instance.

D

dataRead(Responder) - Method in interface com.meterware.simpleserver.ServerListener
Invoked when the server receives a buffer of data.
dataSent(int) - Method in interface com.meterware.simpleserver.ServerListener
Invoked after the server sends data.

G

getData() - Method in interface com.meterware.simpleserver.Responder
Returns the just-received request in a byte buffer.
getDataAsBytes() - Method in interface com.meterware.simpleserver.Responder
Returns the just-received request as an array of bytes
getPort() - Method in class com.meterware.simpleserver.SimpleServer
Returns the number of the port to which client sockets should connect.

R

Responder - Interface in com.meterware.simpleserver
An interface which allows a server to respond to requests.
run() - Method in class com.meterware.simpleserver.SimpleServer
 

S

sendReply(byte[]) - Method in interface com.meterware.simpleserver.Responder
Sends a response as an array of bytes.
sendReply(ByteBuffer) - Method in interface com.meterware.simpleserver.Responder
Sends a response from a byte buffer.
sendReplyAndClose(byte[]) - Method in interface com.meterware.simpleserver.Responder
Sends a response as an array of bytes and then closes the connection.
sendReplyAndClose(ByteBuffer) - Method in interface com.meterware.simpleserver.Responder
Sends a response from a byte buffer and then closes the connection.
ServerListener - Interface in com.meterware.simpleserver
A listener for messages received by the server.
shutDown() - Method in class com.meterware.simpleserver.SimpleServer
Shuts down this server.
SimpleServer - Class in com.meterware.simpleserver
A simple NIO server, intended to simplify testing of socket-based clients.
C D G R S 

Copyright © 2014. All rights reserved.