Response object.
| 43 | * Response object. |
| 44 | */ |
| 45 | public final class Response { |
| 46 | /** |
| 47 | * Default constructor. |
| 48 | */ |
| 49 | public Response() { |
| 50 | } |
| 51 | |
| 52 | private static final StringManager sm = StringManager.getManager(Response.class); |
| 53 | private static final Log log = LogFactory.getLog(Response.class); |
| 54 | |
| 55 | |
| 56 | // ----------------------------------------------------- Class Variables |
| 57 | |
| 58 | /** |
| 59 | * Default locale as mandated by the spec. |
| 60 | */ |
| 61 | private static final Locale DEFAULT_LOCALE = Locale.getDefault(); |
| 62 | |
| 63 | |
| 64 | // ----------------------------------------------------- Instance Variables |
| 65 | |
| 66 | /** |
| 67 | * Status code. |
| 68 | */ |
| 69 | int status = 200; |
| 70 | |
| 71 | |
| 72 | /** |
| 73 | * Status message. |
| 74 | */ |
| 75 | String message = null; |
| 76 | |
| 77 | |
| 78 | /** |
| 79 | * Response headers. |
| 80 | */ |
| 81 | final MimeHeaders headers = new MimeHeaders(); |
| 82 | |
| 83 | |
| 84 | private Supplier<Map<String,String>> trailerFieldsSupplier = null; |
| 85 | |
| 86 | /** |
| 87 | * Associated output buffer. |
| 88 | */ |
| 89 | OutputBuffer outputBuffer; |
| 90 | |
| 91 | |
| 92 | /** |
| 93 | * Notes. |
| 94 | */ |
| 95 | final Object[] notes = new Object[Constants.MAX_NOTES]; |
| 96 | |
| 97 | |
| 98 | /** |
| 99 | * Committed flag. |
| 100 | */ |
| 101 | volatile boolean committed = false; |
| 102 |
nothing calls this directly
no test coverage detected