public class SimpleContentGenerator extends Object implements ContentGenerator
| Constructor and Description |
|---|
SimpleContentGenerator() |
| Modifier and Type | Method and Description |
|---|---|
void |
generate(Resource resource,
Request request,
Response response,
Response.Status status)
Generate an error page for the given status
|
String |
getConflict() |
String |
getMethodNotAllowed() |
String |
getMethodNotImplemented() |
String |
getNotFound() |
String |
getServerError() |
String |
getUnauthorised() |
String |
getUnknown() |
void |
setConflict(String conflict) |
void |
setMethodNotAllowed(String methodNotAllowed) |
void |
setMethodNotImplemented(String methodNotImplemented) |
void |
setNotFound(String notFound) |
void |
setServerError(String serverError) |
void |
setUnauthorised(String unauthorised) |
void |
setUnknown(String unknown) |
public void generate(Resource resource, Request request, Response response, Response.Status status)
ContentGeneratorgenerate in interface ContentGeneratorpublic String getMethodNotAllowed()
public void setMethodNotAllowed(String methodNotAllowed)
methodNotAllowed - the methodNotAllowed to setpublic String getNotFound()
public void setNotFound(String notFound)
notFound - the notFound to setpublic String getMethodNotImplemented()
public void setMethodNotImplemented(String methodNotImplemented)
methodNotImplemented - the methodNotImplemented to setpublic String getConflict()
public void setConflict(String conflict)
conflict - the conflict to setpublic String getServerError()
public void setServerError(String serverError)
serverError - the serverError to setpublic String getUnauthorised()
public void setUnauthorised(String unauthorised)
unauthorised - the unauthorised to setpublic String getUnknown()
public void setUnknown(String unknown)
unknown - the unknown to setCopyright © 2021 McEvoy Software Ltd. All rights reserved.