Friday, November 2, 2012

Java Package javax.servlet.http (Interfaces,Classes and Methods)

javax.servlet.http

Interfaces:
HttpServletRequest
HttpServletResponse
HttpSession

Classes:
Cookie
HttpServlet


Methods of HttpServletRequest:
public cookie[] getCookies()
public string getHeaders(String Name)
public HttpSession getSession()

Methods of HttpServletResponse:
public void addcookie(String name,String value)
public void addHeaders(String name,String value)
public void sendRedirect(String url)

Methods of HttpSession:
public void setAttribute(String name,Object value)
public Object getAttribute(String name)

Methods of Httpservlet:
public void service(HttpServletRequest,HttpServletResponse)
throws ServletException,IOException
public void doGet(HttpServletRequest,HttpServletResponse)
throws ServletException,IOException
public void doPost(HttpServletRequest,HttpServletResponse)
throws ServletException,IOException

No comments:

Popular Posts