KickJava   Java API By Example, From Geeks To Geeks.

Java > Java SE, EE, ME > javax > servlet > http > HttpServletRequestWrapper

javax.servlet.http
Class HttpServletRequestWrapper

java.lang.Object
  extended byjavax.servlet.ServletRequestWrapper
      extended byjavax.servlet.http.HttpServletRequestWrapper
All Implemented Interfaces:
HttpServletRequest, ServletRequest
See Also:
Top Examples, Source Code

public String getAuthType()
See Also:
HttpServletRequest
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public String getContextPath()
See Also:
HttpServletRequest
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


[254]Banner Servlet
By Anonymous on 2003/05/15 18:41:18  Rate
public class BannerServlet extends HttpServlet  {  
  
  
 public void doGet  ( HttpServletRequest request, 
                     HttpServletResponse response )  
     throws ServletException, IOException  {  
  
  
     PrintWriter out = response.getWriter (  ) ; 
     out.println ( " < body bgcolor=\"#ffffff\" > " + 
     " < center > " + " < hr >   < br >   " + " < h1 > " + 
     " < font size=\"+3\" color=\"#CC0066\" > Duke's  < /font > " + 
      < img SRC=\"" + request.getContextPath (  )  + 
     "/duke.books.gif\" > " + 
     " < font size=\"+3\" color=\"black\" > Bookstore < /font > " + 
     " < /h1 > " + " < /center > " + " < br >     < hr >   < br >  " ) ; 
  }  
  
  
 public void doPost  ( HttpServletRequest request, 
                     HttpServletResponse response )  
     throws ServletException, IOException  {  
      
     PrintWriter out = response.getWriter (  ) ; 
     out.println ( " < body bgcolor=\"#ffffff\" > " + 
     " < center > " + " < hr >   < br >   " + " < h1 > " + 
     " < font size=\"+3\" color=\"#CC0066\" > Duke's  < /font > " + 
      < img SRC=\"" + request.getContextPath (  )  + 
     "/duke.books.gif\" > " + 
     " < font size=\"+3\" color=\"black\" > Bookstore < /font > " + 
     " < /h1 > " + " < /center > " + " < br >     < hr >   < br >  " ) ; 
  }  
  
  
  } 


public Cookie[] getCookies()
See Also:
HttpServletRequest
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public long getDateHeader(String name)
See Also:
HttpServletRequest
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public String getHeader(String name)
See Also:
HttpServletRequest
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public Enumeration getHeaderNames()
See Also:
HttpServletRequest
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public Enumeration getHeaders(String name)
See Also:
HttpServletRequest
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public int getIntHeader(String name)
See Also:
HttpServletRequest
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public String getMethod()
See Also:
HttpServletRequest
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public String getPathInfo()
See Also:
HttpServletRequest
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public String getPathTranslated()
See Also:
HttpServletRequest
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public String getQueryString()
See Also:
HttpServletRequest
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public String getRemoteUser()
See Also:
HttpServletRequest
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public String getRequestedSessionId()
See Also:
HttpServletRequest.isRequestedSessionIdValid()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public String getRequestURI()
See Also:
HttpUtils.getRequestURL(javax.servlet.http.HttpServletRequest), HttpServletRequest
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public StringBuffer getRequestURL()
See Also:
HttpServletRequest
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public String getServletPath()
See Also:
HttpServletRequest
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public HttpSession getSession()
See Also:
HttpServletRequest.getSession(boolean)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public HttpSession getSession(boolean create)
See Also:
HttpServletRequest.getSession()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public Principal getUserPrincipal()
See Also:
HttpServletRequest
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public HttpServletRequestWrapper(HttpServletRequest request)
See Also:
IllegalArgumentException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public boolean isRequestedSessionIdFromCookie()
See Also:
HttpServletRequest.getSession(boolean)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public boolean isRequestedSessionIdFromUrl()
See Also:
HttpServletRequest
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public boolean isRequestedSessionIdValid()
See Also:
HttpSessionContext, HttpServletRequest.getSession(boolean), HttpServletRequest.getRequestedSessionId()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public boolean isUserInRole(String role)
See Also:
HttpServletRequest
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  

Popular Tags