Interface RequestHandler<REQUEST extends org.refcodes.serial.Segment>

  • Type Parameters:
    REQUEST - The Segment 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 Detail

      • onRequest

        org.refcodes.serial.Segment onRequest​(REQUEST aRequest)
        The onRequest(Segment) method processes a request and produces a response.
        Parameters:
        aRequest - The according request Segment for which to produce a response.
        Returns:
        The produces response Segment.