共用方式為


LocalTestServer.RequestHandler Interface

public static interface LocalTestServer.RequestHandler

Handler that will be used to process requests.

Method Summary

Modifier and Type Method and Description
abstract void handle(Request req, Response resp, byte[] requestBody)

Handles the request.

Method Details

handle

public abstract void handle(Request req, Response resp, byte[] requestBody)

Handles the request.

Parameters:

req - The request.
resp - The response.
requestBody - The request body.

Throws:

IOException

- If an IO error occurs.
javax.servlet.ServletException - If an IO error occurs.

Applies to