Interface RequestHandler<REQUEST extends org.refcodes.serial.Segment>
- Type Parameters:
REQUEST
- TheSegment
type to be handled.
public interface RequestHandler<REQUEST extends org.refcodes.serial.Segment>
A
RequestHandler
provides means to construct a response
Segment
in response to an incoming request Segment
.-
Method Summary
Modifier and TypeMethodDescriptionorg.refcodes.serial.Segment
TheonRequest(Segment)
method processes a request and produces a response.
-
Method Details
-
onRequest
TheonRequest(Segment)
method processes a request and produces a response.- Parameters:
aRequest
- The according requestSegment
for which to produce a response.- Returns:
- The produces response
Segment
.
-