The default cache time to use for streaming methods in RequestHandler.
The default cache time to use for streaming methods in RequestHandler.
Defaults to 120
The default chunk size to use for streaming methods in RequestHandler.
The default chunk size to use for streaming methods in RequestHandler.
Defaults to 8192
Creates an HttpResponse given the parameters supplied.
Creates an HttpResponse given the parameters supplied.
the HttpVersion, defaults to HTTP_1_1
the HttpResponseStatus, defaults to OK
the content-length, defaults to -1 (not sent)
the content-type, defaults to null (not sent)
the time to cache the response in seconds
the last modified timestamp, defaults to -1 (not sent)
true if expiration data should be sent, defaults to true
Attempts to use mimeTypes to determine the content-type if the supplied content-type is null.
Attempts to use mimeTypes to determine the content-type if the supplied content-type is null.
the filename to use for content-type derivation
the content-type to use if not null
derived content-type
The default mimeTypes to use for streaming methods in RequestHandler.
Reads from the request the last modified date in the headers and determines if the version the client has the same modification stamp as the server.
Reads from the request the last modified date in the headers and determines if the version the client has the same modification stamp as the server.
Note that this will send a response back and close the connection if the client has the cached version.
the last modified stamp in milliseconds to compare with
the context to use
the inbound request
true if the client has the correct version
Sends a standard OK response and closes the connection.
Streams a File back to the client and closes the connection when finished.
Streams a File back to the client and closes the connection when finished.
the File to stream
the context to use
the inbound request
the content-type to send. If this is null the content-type will be derived from the URL
the amount of time in seconds to cache this response
the chunk size to use when streaming the content back
determines whether this content is cachable
Streams an InputStream back to the client and closes the connection when finished.
Streams an InputStream back to the client and closes the connection when finished.
the InputStream to stream
the context to use
the inbound request
the content-type to send
the content-length to send
the last modified time in milliseconds
the amount of time in seconds to cache this response
the chunk size to use when streaming the content back
determines whether this content is cachable
Streams a URL back to the client and closes the connection when finished.
Streams a URL back to the client and closes the connection when finished.
the URL to stream
the context to use
the inbound request
the content-type to send. If this is null the content-type will be derived from the URL
the amount of time in seconds to cache this response
the chunk size to use when streaming the content back
determines whether this content is cachable
Writes the RandomAccessFile out.
Writes the RandomAccessFile out. This handles explicitly streaming data back to the channel. The streamFile method should be used to send a response instead of this method.
Writes the InputStream out.
Writes the InputStream out. This handles explicitly streaming data back to the channel. The streamInput method should be used to send a response instead of this method.