/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package org.bridgedb.uri.ws.uri; import java.io.BufferedReader; import java.io.IOException; import java.io.UnsupportedEncodingException; import java.security.Principal; import java.util.Enumeration; import java.util.Locale; import java.util.Map; import javax.servlet.RequestDispatcher; import javax.servlet.ServletInputStream; import javax.servlet.http.Cookie; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpSession; /** * * @author Christian */ public class DummyHttpServletRequest implements HttpServletRequest{ @Override public String getAuthType() { throw new UnsupportedOperationException("Not supported yet."); } @Override public Cookie[] getCookies() { throw new UnsupportedOperationException("Not supported yet."); } @Override public long getDateHeader(String string) { throw new UnsupportedOperationException("Not supported yet."); } @Override public String getHeader(String string) { throw new UnsupportedOperationException("Not supported yet."); } @Override public Enumeration getHeaders(String string) { throw new UnsupportedOperationException("Not supported yet."); } @Override public Enumeration getHeaderNames() { throw new UnsupportedOperationException("Not supported yet."); } @Override public int getIntHeader(String string) { throw new UnsupportedOperationException("Not supported yet."); } @Override public String getMethod() { throw new UnsupportedOperationException("Not supported yet."); } @Override public String getPathInfo() { throw new UnsupportedOperationException("Not supported yet."); } @Override public String getPathTranslated() { throw new UnsupportedOperationException("Not supported yet."); } @Override public String getContextPath() { return "http://www.example.com"; } @Override public String getQueryString() { throw new UnsupportedOperationException("Not supported yet."); } @Override public String getRemoteUser() { throw new UnsupportedOperationException("Not supported yet."); } @Override public boolean isUserInRole(String string) { throw new UnsupportedOperationException("Not supported yet."); } @Override public Principal getUserPrincipal() { throw new UnsupportedOperationException("Not supported yet."); } @Override public String getRequestedSessionId() { throw new UnsupportedOperationException("Not supported yet."); } @Override public String getRequestURI() { return "/BridgeDb"; } @Override public StringBuffer getRequestURL() { throw new UnsupportedOperationException("Not supported yet."); } @Override public String getServletPath() { return "test"; } @Override public HttpSession getSession(boolean bln) { throw new UnsupportedOperationException("Not supported yet."); } @Override public HttpSession getSession() { throw new UnsupportedOperationException("Not supported yet."); } @Override public boolean isRequestedSessionIdValid() { throw new UnsupportedOperationException("Not supported yet."); } @Override public boolean isRequestedSessionIdFromCookie() { throw new UnsupportedOperationException("Not supported yet."); } @Override public boolean isRequestedSessionIdFromURL() { throw new UnsupportedOperationException("Not supported yet."); } @Override public boolean isRequestedSessionIdFromUrl() { throw new UnsupportedOperationException("Not supported yet."); } @Override public Object getAttribute(String string) { throw new UnsupportedOperationException("Not supported yet."); } @Override public Enumeration getAttributeNames() { throw new UnsupportedOperationException("Not supported yet."); } @Override public String getCharacterEncoding() { throw new UnsupportedOperationException("Not supported yet."); } @Override public void setCharacterEncoding(String string) throws UnsupportedEncodingException { throw new UnsupportedOperationException("Not supported yet."); } @Override public int getContentLength() { throw new UnsupportedOperationException("Not supported yet."); } @Override public String getContentType() { throw new UnsupportedOperationException("Not supported yet."); } @Override public ServletInputStream getInputStream() throws IOException { throw new UnsupportedOperationException("Not supported yet."); } @Override public String getParameter(String string) { throw new UnsupportedOperationException("Not supported yet."); } @Override public Enumeration getParameterNames() { throw new UnsupportedOperationException("Not supported yet."); } @Override public String[] getParameterValues(String string) { throw new UnsupportedOperationException("Not supported yet."); } @Override public Map getParameterMap() { throw new UnsupportedOperationException("Not supported yet."); } @Override public String getProtocol() { throw new UnsupportedOperationException("Not supported yet."); } @Override public String getScheme() { return "http"; } @Override public String getServerName() { return "localhost"; } @Override public int getServerPort() { return 8080; //test } @Override public BufferedReader getReader() throws IOException { throw new UnsupportedOperationException("Not supported yet."); } @Override public String getRemoteAddr() { throw new UnsupportedOperationException("Not supported yet."); } @Override public String getRemoteHost() { throw new UnsupportedOperationException("Not supported yet."); } @Override public void setAttribute(String string, Object o) { throw new UnsupportedOperationException("Not supported yet."); } @Override public void removeAttribute(String string) { throw new UnsupportedOperationException("Not supported yet."); } @Override public Locale getLocale() { throw new UnsupportedOperationException("Not supported yet."); } @Override public Enumeration getLocales() { throw new UnsupportedOperationException("Not supported yet."); } @Override public boolean isSecure() { throw new UnsupportedOperationException("Not supported yet."); } @Override public RequestDispatcher getRequestDispatcher(String string) { throw new UnsupportedOperationException("Not supported yet."); } @Override public String getRealPath(String string) { throw new UnsupportedOperationException("Not supported yet."); } @Override public int getRemotePort() { throw new UnsupportedOperationException("Not supported yet."); } @Override public String getLocalName() { throw new UnsupportedOperationException("Not supported yet."); } @Override public String getLocalAddr() { throw new UnsupportedOperationException("Not supported yet."); } @Override public int getLocalPort() { throw new UnsupportedOperationException("Not supported yet."); } }