API Overview
API Index
Package Overview
Direct link to this page
JavaOnTracks 0.1.2
net.jot.web.server.
JOTWebRequest
View Source
Author(s)
thibautc
Since
Version
Serial
Hierarchy
Object
JOTWebRequest
Implements
Subclasses
See DIRECT subclasses
Quick Links:
Constructors
Methods
Fields
NestedClasses
Description
public
class JOTWebRequest
HttpServletRequest impl.
HttpServletRequest impl. (not fully impl. yet)
Use JOTRequestParser to parse a socket input into a request.
See also:
Constructors
pack-private
JOTWebRequest
()
should be retrieved through JOTRequestParser
Methods
Hide/Show inherited methods
protected
void
addHeader
(
String
key,
String
value)
public
Object
getAttribute
(
String
key)
public
Enumeration
getAttributeNames
()
public
String
getAuthType
()
public
String
getCharacterEncoding
()
public
int
getContentLength
()
public
String
getContentType
()
public
String
getContextPath
()
public
Cookie
getCookies
()
public
long
getDateHeader
(
String
headerName)
public
String
getHeader
(
String
headerName)
public
Enumeration
getHeaderNames
()
public
Hashtable
getHeaders
()
public
Enumeration
getHeaders
(
String
headerName)
public
ServletInputStream
getInputStream
() throws
IOException
public
int
getIntHeader
(
String
headerName)
public
String
getLocalAddr
()
public
Locale
getLocale
()
public
Enumeration
getLocales
()
pack-private
String
getLocalHost
()
public
String
getLocalName
()
public
int
getLocalPort
()
public
String
getMethod
()
public
String
getParameter
(
String
name)
public
Map
getParameterMap
()
public
Enumeration
getParameterNames
()
public
Hashtable
getParameters
()
public
String
getParameterValues
(
String
name)
public
String
getPathInfo
()
public
String
getPathTranslated
()
public
String
getProtocol
()
public
String
getQueryString
()
public
String
getRawRequestLine
()
Get the raw requestline as sent from the browser
Get the raw requestline as sent from the browser
Returns:
public
BufferedReader
getReader
() throws
IOException
public
String
getRealPath
(
String
paht)
Returns:
Parameters:
-
arg0
-
public
String
getRemoteAddr
()
public
String
getRemoteHost
()
public
int
getRemotePort
()
public
String
getRemoteUser
()
public
RequestDispatcher
getRequestDispatcher
(
String
arg0)
public
String
getRequestedSessionId
()
public
String
getRequestURI
()
public
StringBuffer
getRequestURL
()
Returns:
public
String
getScheme
()
HttpServletRequest Impl.
HttpServletRequest Impl. methods
Returns:
public
String
getServerName
()
public
int
getServerPort
()
public
String
getServletPath
()
public
HttpSession
getSession
()
public
HttpSession
getSession
(
boolean
createIfNew)
pack-private
String
getSessionId
()
public
Principal
getUserPrincipal
()
public
boolean
isRequestedSessionIdFromCookie
()
public
boolean
isRequestedSessionIdFromUrl
()
Returns:
public
boolean
isRequestedSessionIdFromURL
()
public
boolean
isRequestedSessionIdValid
()
public
boolean
isSecure
()
public
boolean
isUserInRole
(
String
arg0)
public
void
parseCookieLine
(
String
value)
public
void
removeAttribute
(
String
key)
public
void
setAttribute
(
String
key,
Object
value)
public
void
setCharacterEncoding
(
String
encoding) throws
UnsupportedEncodingException
pack-private
void
setContextPath
(
String
path)
pack-private
void
setLocalHost
(
String
localHost)
pack-private
void
setLocalPort
(
int
localPort)
pack-private
void
setMethod
(
String
method)
pack-private
void
setParameters
(
Hashtable
parameters)
pack-private
void
setPath
(
String
path)
pack-private
void
setProtocol
(
String
protocol)
pack-private
void
setRawParameters
(
String
params)
Others
pack-private
void
setRawParams
(
String
rawParams)
pack-private
void
setRawRequestLine
(
String
rawRequestLine)
pack-private
void
setRemoteHost
(
String
host)
pack-private
void
setRemotePort
(
int
port)
pack-private
void
setRequestedSessionId
(
String
id,
boolean
fromCookies)
Parameters:
-
id
-
-
fromCookies
- - if flase : from url
pack-private
void
setSessionId
(
String
id)
public
String
toString
()
Print detailed infos about the request
Print detailed infos about the request
Returns:
Fields
Hide/Show inherited fields
pack-private
byte
body
pack-private
final
static
JOTLoggerLocation
logger
pack-private
Socket
socket
Nested Classes
Generated By:
JavaOnTracks Doclet
0.1.5 ©Thibaut Colar