public interface FredPluginHTTP
Modifier and Type | Method and Description |
---|---|
java.lang.String |
handleHTTPGet(HTTPRequest request)
Handle a GET request, return HTML as a string or throw.
|
java.lang.String |
handleHTTPPost(HTTPRequest request) |
java.lang.String handleHTTPGet(HTTPRequest request) throws PluginHTTPException
AccessDeniedPluginHTTPException
- to send a 403 error.DownloadPluginHTTPException
- to force data to be downloaded
to disk, with a MIME type.NotFoundPluginHTTPException
- to send a 404 error.RedirectPluginHTTPException
- to send a redirect.PluginHTTPException
- for any other failure, treated as a 400
error.java.lang.String handleHTTPPost(HTTPRequest request) throws PluginHTTPException
PluginHTTPException