Package io.milton.http.http11
Class SimpleContentGenerator
java.lang.Object
io.milton.http.http11.SimpleContentGenerator
- All Implemented Interfaces:
ContentGenerator
Just uses simple property values to generate error content
- Author:
- brad
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidgenerate(Resource resource, Request request, Response response, Response.Status status) Generate an error page for the given statusvoidsetConflict(String conflict) voidsetMethodNotAllowed(String methodNotAllowed) voidsetMethodNotImplemented(String methodNotImplemented) voidsetNotFound(String notFound) voidsetServerError(String serverError) voidsetUnauthorised(String unauthorised) voidsetUnknown(String unknown)
-
Constructor Details
-
SimpleContentGenerator
public SimpleContentGenerator()
-
-
Method Details
-
generate
Description copied from interface:ContentGeneratorGenerate an error page for the given status- Specified by:
generatein interfaceContentGenerator
-
getMethodNotAllowed
- Returns:
- the methodNotAllowed
-
setMethodNotAllowed
- Parameters:
methodNotAllowed- the methodNotAllowed to set
-
getNotFound
- Returns:
- the notFound
-
setNotFound
- Parameters:
notFound- the notFound to set
-
getMethodNotImplemented
- Returns:
- the methodNotImplemented
-
setMethodNotImplemented
- Parameters:
methodNotImplemented- the methodNotImplemented to set
-
getConflict
- Returns:
- the conflict
-
setConflict
- Parameters:
conflict- the conflict to set
-
getServerError
- Returns:
- the serverError
-
setServerError
- Parameters:
serverError- the serverError to set
-
getUnauthorised
- Returns:
- the unauthorised
-
setUnauthorised
- Parameters:
unauthorised- the unauthorised to set
-
getUnknown
- Returns:
- the unknown
-
setUnknown
- Parameters:
unknown- the unknown to set
-