Class ErrorMixin
java.lang.Object
org.apache.juneau.rest.server.servlet.RestMixin
org.apache.juneau.rest.server.ops.ErrorMixin
Mixin providing the residual
[* /error] endpoint.
Single-responsibility op-mixin carved out of the former BasicRestOperations interface. Compose
into a host via @Rest(mixins=ErrorMixin.class); the BasicRestServlet family
pulls it in by default.
Servlet chains often redirect to /error when an error condition occurs (such as failed
authentication) and set appropriate response parameters (such as a WWW-Authenticate header).
- Since:
- 10.0.0
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.juneau.rest.server.servlet.RestMixin
RestMixin.Builder<R extends RestMixin,SELF extends RestMixin.Builder<R, SELF>>, RestMixin.DefaultBuilder<R extends RestMixin> -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.apache.juneau.rest.server.servlet.RestMixin
builder, getHostContext, getRestBuilder, setContext
-
Constructor Details
-
ErrorMixin
public ErrorMixin()
-
-
Method Details
-
error
[* /error] - Error occurred.
-