Interface ErrorPageApi
-
public interface ErrorPageApi
An error page is the html file that is shown to an end user who is attempting to access a load balancer node that is offline/unavailable. During provisioning, every load balancer is configured with a default error page that gets displayed when traffic is requested for an offline node. A single custom error page may be added to a load balancer with an HTTP-based protocol. Page updates will override existing content.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method 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.
-
-
-
Method Detail
-
create
@Named("errorpage:create") @PUT @Consumes("*/*") @Produces("application/json") @Path("/errorpage") void create(String content)
Specify the HTML content for the custom error page. Must be 65536 characters or less.
-
get
@Named("errorpage:get") @GET @Consumes("application/json") @Path("/errorpage") String get()
Get the error page HTML content.
-
delete
@Named("errorpage:delete") @DELETE @Consumes("*/*") @Path("/errorpage") 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.
-
-