public interface ErrorPageApi
Modifier and Type | Method and Description |
---|---|
void |
create(String content)
Specify the HTML content for the custom error page.
|
boolean |
delete()
If a custom error page is deleted, or the load balancer is changed to a non-HTTP protocol, the default error
page will be restored.
|
String |
get()
Get the error page HTML content.
|
@Named(value="errorpage:create") @PUT @Consumes(value="*/*") @Produces(value="application/json") @Path(value="/errorpage") void create(String content)
@Named(value="errorpage:get") @GET @Consumes(value="application/json") @Path(value="/errorpage") String get()
@Named(value="errorpage:delete") @DELETE @Consumes(value="*/*") @Path(value="/errorpage") boolean delete()
Copyright © 2009-2018 The Apache Software Foundation. All Rights Reserved.