API Overview
API Index
Package Overview
Direct link to this page
JavaOnTracks 0.1.2
net.jot.web.server.
JOTWebResponse
View Source
Author(s)
thibautc
Since
Version
Serial
Hierarchy
Object
JOTWebResponse
Implements
Subclasses
See DIRECT subclasses
Quick Links:
Constructors
Methods
Fields
NestedClasses
Description
public
class JOTWebResponse
HttpServletResponse impl.
See also:
Constructors
public
JOTWebResponse
(
Socket
socket,
JOTWebRequest
request)
You usually would't create a response on your own ut be provided one by the container.
You usually would't create a response on your own ut be provided one by the container.
Parameters:
-
socket
-
-
request
-
Methods
Hide/Show inherited methods
public
String
absoluteURL
(
String
path)
public
void
addCookie
(
Cookie
cookie)
public
void
addDateHeader
(
String
key,
long
date)
public
void
addHeader
(
String
key,
String
value)
public
void
addIntHeader
(
String
key,
int
value)
public
boolean
containsHeader
(
String
headerName)
public
void
destroy
()
public
String
encodeRedirectUrl
(
String
arg0)
Returns:
Parameters:
-
arg0
-
public
String
encodeRedirectURL
(
String
url)
public
String
encodeUrl
(
String
arg0)
Returns:
Parameters:
-
arg0
-
public
String
encodeURL
(
String
url)
public
void
flushBuffer
() throws
IOException
public
int
getBufferSize
()
public
String
getCharacterEncoding
()
public
String
getContentType
()
public
Locale
getLocale
()
public
ServletOutputStream
getOutputStream
() throws
IOException
public
PrintWriter
getWriter
() throws
IOException
public
boolean
isCommitted
()
public
void
reset
()
public
void
resetBuffer
()
public
void
sendError
(
int
statusCode) throws
IOException
public
void
sendError
(
int
statusCode,
String
err) throws
IOException
public
void
sendRedirect
(
String
url) throws
IOException
public
void
setBufferSize
(
int
size)
public
void
setCharacterEncoding
(
String
enc)
public
void
setContentLength
(
int
length)
public
void
setContentType
(
String
type)
public
void
setDateHeader
(
String
key,
long
date)
public
void
setHeader
(
String
key,
String
value)
public
void
setIntHeader
(
String
key,
int
value)
public
void
setLocale
(
Locale
locale)
public
void
setStatus
(
int
status)
public
void
setStatus
(
int
status,
String
sm)
Parameters:
-
status
-
-
sm
-
pack-private
void
writePreamble
()
Fields
Hide/Show inherited fields
pack-private
Vector
cookies
pack-private
Hashtable
headers
headers (header name -> Vector of values(string))
pack-private
final
static
JOTLoggerLocation
logger
Nested Classes
JOTWebResponse.MyStream
JOTWebResponse.MyWriter
Generated By:
JavaOnTracks Doclet
0.1.5 ©Thibaut Colar