⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 mockedresponse.java

📁 pojo的mvc框架
💻 JAVA
字号:
package xyz.frame.test;import java.io.IOException;import java.io.PrintWriter;import java.io.Writer;import java.util.Locale;import javax.servlet.ServletOutputStream;import javax.servlet.http.Cookie;import javax.servlet.http.HttpServletResponse;/** * Simple mocked response *  * @author Guilherme Silveira */public class MockedResponse implements HttpServletResponse {	public void addCookie(Cookie arg0) {	}	public boolean containsHeader(String arg0) {		return false;	}	public String encodeURL(String url) {		return null;	}	public String encodeRedirectURL(String arg0) {		return null;	}	public String encodeUrl(String arg0) {		return null;	}	public String encodeRedirectUrl(String arg0) {		return null;	}	public void sendError(int arg0, String arg1) throws IOException {	}	public void sendError(int arg0) throws IOException {	}	public void sendRedirect(String arg0) throws IOException {	}	public void setDateHeader(String arg0, long arg1) {	}	public void addDateHeader(String arg0, long arg1) {	}	public void setHeader(String arg0, String arg1) {	}	public void addHeader(String arg0, String arg1) {	}	public void setIntHeader(String arg0, int arg1) {	}	public void addIntHeader(String arg0, int arg1) {	}	public void setStatus(int arg0) {	}	public void setStatus(int arg0, String arg1) {	}	public String getCharacterEncoding() {		return null;	}	public String getContentType() {		return null;	}	public ServletOutputStream getOutputStream() throws IOException {		return new ServletOutputStream() {			@Override			public void write(int b) throws IOException {			}		};	}	public PrintWriter getWriter() throws IOException {		return new PrintWriter(new Writer() {			@Override			public void write(char[] cbuf, int off, int len) throws IOException {			}			@Override			public void flush() throws IOException {			}			@Override			public void close() throws IOException {			}		});	}	public void setCharacterEncoding(String arg0) {	}	public void setContentLength(int arg0) {	}	public void setContentType(String arg0) {	}	public void setBufferSize(int arg0) {	}	public int getBufferSize() {		return 0;	}	public void flushBuffer() throws IOException {	}	public void resetBuffer() {	}	public boolean isCommitted() {		return false;	}	public void reset() {	}	public void setLocale(Locale arg0) {	}	public Locale getLocale() {		return null;	}}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -