KickJava   Java API By Example, From Geeks To Geeks.

Java > Java SE, EE, ME > javax > servlet > ServletRequestWrapper

javax.servlet
Class ServletRequestWrapper

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

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


[200]Get the name of the remote host
By Anonymous on 2003/03/26 09:35:20  Rate
// Get the name of the remote host and log it 
 String remoteHost = request.getRemoteHost (  ) ; 
 log.info (  "Request from host: " + remoteHost  ) ; 
  
  
 // Make sure the host is from one that you expect 
 if  (  remoteHost == null || !remoteHost.startsWith (  "127." )   )  {  
    // Not the localhost, do something ... 
  
  
  }  
  
  
 //getAttribute


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


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


public int getContentLength()
See Also:
ServletRequest
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


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


public ServletInputStream getInputStream()
                                  throws IOException
See Also:
ServletRequest
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


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


public Locale getLocale()
See Also:
ServletRequest
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


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


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


public int getLocalPort()
See Also:
ServletRequest
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public String getParameter(String name)
See Also:
ServletRequest.getParameterValues(java.lang.String)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public Map getParameterMap()
See Also:
ServletRequest
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


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


public String[] getParameterValues(String name)
See Also:
ServletRequest.getParameter(java.lang.String)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


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


public BufferedReader getReader()
                         throws IOException
See Also:
ServletRequest.getInputStream()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


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


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


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


public int getRemotePort()
See Also:
ServletRequest
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public ServletRequest getRequest()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public RequestDispatcher getRequestDispatcher(String path)
See Also:
ServletRequest
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


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


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


public int getServerPort()
See Also:
ServletRequest
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


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


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


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


public void setAttribute(String name,
                         Object o)
See Also:
ServletRequest
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void setCharacterEncoding(String enc)
                          throws UnsupportedEncodingException
See Also:
ServletRequest
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


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

Popular Tags