📄 mockpagecontext.java.svn-base
字号:
} public void println(double x) throws IOException { checkAndThrow(); } public void println(char[] x) throws IOException { checkAndThrow(); } public void println(String x) throws IOException { checkAndThrow(); } public void println(Object x) throws IOException { checkAndThrow(); } public void clear() throws IOException { checkAndThrow(); } public void clearBuffer() throws IOException { checkAndThrow(); } public void flush() throws IOException { checkAndThrow(); } public void close() throws IOException { checkAndThrow(); } public int getRemaining() { return 0; } public void write(char[] cbuf, int off, int len) throws IOException { checkAndThrow(); } }; if (returnBodyContent) { return new BodyContent(jspWriter) { public Reader getReader() { return null; } public String getString() { return null; } public void writeOut(Writer out) throws IOException { checkAndThrow(); } public void newLine() throws IOException { checkAndThrow(); } public void print(boolean b) throws IOException { checkAndThrow(); } public void print(char c) throws IOException { checkAndThrow(); } public void print(int i) throws IOException { checkAndThrow(); } public void print(long l) throws IOException { checkAndThrow(); } public void print(float f) throws IOException { checkAndThrow(); } public void print(double d) throws IOException { checkAndThrow(); } public void print(char[] s) throws IOException { checkAndThrow(); } public void print(String s) throws IOException { checkAndThrow(); } public void print(Object obj) throws IOException { checkAndThrow(); } public void println() throws IOException { checkAndThrow(); } public void println(boolean x) throws IOException { checkAndThrow(); } public void println(char x) throws IOException { checkAndThrow(); } public void println(int x) throws IOException { checkAndThrow(); } public void println(long x) throws IOException { checkAndThrow(); } public void println(float x) throws IOException { checkAndThrow(); } public void println(double x) throws IOException { checkAndThrow(); } public void println(char[] x) throws IOException { checkAndThrow(); } public void println(String x) throws IOException { checkAndThrow(); } public void println(Object x) throws IOException { checkAndThrow(); } public void clear() throws IOException { checkAndThrow(); } public void clearBuffer() throws IOException { checkAndThrow(); } public void close() throws IOException { checkAndThrow(); } public int getRemaining() { return 0; } public void write(char[] cbuf, int off, int len) throws IOException { checkAndThrow(); } }; } return jspWriter; } public Object getPage() { throw new UnsupportedOperationException(); } public ServletRequest getRequest() { return (this.request); } public ServletResponse getResponse() { return (this.response); } public ServletConfig getServletConfig() { return (this.config); } public ServletContext getServletContext() { return (this.application); } public HttpSession getSession() { return (this.session); } public void handlePageException(Exception e) { throw new UnsupportedOperationException(); } public void handlePageException(Throwable t) { throw new UnsupportedOperationException(); } public void include(String path) { throw new UnsupportedOperationException(); } public void initialize(Servlet servlet, ServletRequest request, ServletResponse response, String errorPageURL, boolean needsSession, int bufferSize, boolean autoFlush) { throw new UnsupportedOperationException(); } public JspWriter popBody() { throw new UnsupportedOperationException(); } public BodyContent pushBody() { throw new UnsupportedOperationException(); } public void release() { throw new UnsupportedOperationException(); } public void removeAttribute(String name) { int scope = getAttributesScope(name); if (scope != 0) { removeAttribute(name, scope); } } public void removeAttribute(String name, int scope) { if (scope == PageContext.PAGE_SCOPE) { attributes.remove(name); } else if (scope == PageContext.REQUEST_SCOPE) { if (request != null) { request.removeAttribute(name); } } else if (scope == PageContext.SESSION_SCOPE) { if (session != null) { session.removeAttribute(name); } } else if (scope == PageContext.APPLICATION_SCOPE) { if (application != null) { application.removeAttribute(name); } } else { throw new IllegalArgumentException("Invalid scope " + scope); } } public void setAttribute(String name, Object value) { setAttribute(name, value, PageContext.PAGE_SCOPE); } public void setAttribute(String name, Object value, int scope) { if (scope == PageContext.PAGE_SCOPE) { attributes.put(name, value); } else if (scope == PageContext.REQUEST_SCOPE) { if (request != null) { request.setAttribute(name, value); } } else if (scope == PageContext.SESSION_SCOPE) { if (session != null) { session.setAttribute(name, value); } } else if (scope == PageContext.APPLICATION_SCOPE) { if (application != null) { application.setAttribute(name, value); } } else { throw new IllegalArgumentException("Invalid scope " + scope); } }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -