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>
ARequestHandler
provides means to construct a responseSegment
in response to an incoming requestSegment
.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description org.refcodes.serial.Segment
onRequest(REQUEST aRequest)
TheonRequest(Segment)
method processes a request and produces a response.
-
-
-
Method Detail
-
onRequest
org.refcodes.serial.Segment onRequest(REQUEST aRequest)
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
.
-
-