O'Reilly logo

Special Edition Using Java™ 2 Enterprise Edition by Mark Wutka

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

The javax.servlet.http API

Interfaces

HttpServletRequest

The HttpServletRequest class provides methods for accessing HTTP-specific portions of the incoming request.

							getAuthType

public String getAuthType()

Returns the name of the authentication scheme used for authenticating access to this servlet. If there is no authentication, this method returns null.

							getContextPath

public String getContextPath()

Returns the context portion of the servlets URI. For a URI of http://localhost/myservlets/personal/HiCeal the context path would be /myservlets/personal.

							getCookies

public Cookie[] getCookies()

Returns an array of all the cookies contained in the request, or null if there are no cookies.

							getDateHeader public long getDateHeader(String name) ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required