blob: 1b0de45f372bb7bbed16f71ae2f0bd28bc8f8ca8 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
/*******************************************************************************
* Copyright (c) 2014 Raymond Augé and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Raymond Augé <raymond.auge@liferay.com> - Bug 436698
******************************************************************************/
package org.eclipse.equinox.http.servlet.internal.servlet;
import java.io.IOException;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpServletResponseWrapper;
/**
* @author Raymond Augé
*/
public class HttpServletResponseWrapperImpl extends HttpServletResponseWrapper {
public HttpServletResponseWrapperImpl(HttpServletResponse response) {
super(response);
}
@Override
public void sendError(int status) throws IOException {
this.status = status;
}
@Override
public void sendError(int status, String message) throws IOException {
this.status = status;
this.message = message;
}
public String getMessage() {
return message;
}
@Override
public int getStatus() {
return status;
}
private int status;
private String message;
}
|