Skip navigation links
A B C D E F G H I J K L M N O P Q R S T U V W _ 

A

accept() - Method in class jodd.http.HttpBase
Returns "Accept" header.
accept(String) - Method in class jodd.http.HttpBase
Sets "Accept" header.
acceptEncoding() - Method in class jodd.http.HttpBase
Returns "Accept-Encoding" header.
acceptEncoding(String) - Method in class jodd.http.HttpBase
Sets "Accept-Encoding" header.
acceptJson() - Method in class jodd.http.HttpRequest
Accepts JSON content type.
add(String, V) - Method in class jodd.http.HttpMultiMap
 
addAll(String, Iterable<V>) - Method in class jodd.http.HttpMultiMap
 
addAll(HttpMultiMap<V>) - Method in class jodd.http.HttpMultiMap
 
addAll(Map<String, V>) - Method in class jodd.http.HttpMultiMap
 
addCookies(HttpRequest) - Method in class jodd.http.HttpBrowser
Add cookies to the request.
addDefaultHeaders(HttpRequest) - Method in class jodd.http.HttpBrowser
Add default headers to the request.
addHeader(String, String) - Method in class jodd.http.HeadersMultiMap
Adds new header value.
append(String) - Method in class jodd.http.Buffer
Appends string content to buffer.
append(char) - Method in class jodd.http.Buffer
Appends a char.
append(int) - Method in class jodd.http.Buffer
Appends a number.
append(Uploadable) - Method in class jodd.http.Buffer
Appends Uploadable to buffer.
append(Buffer) - Method in class jodd.http.Buffer
Appends other buffer to this one.

B

basicAuthentication(String, String) - Method in class jodd.http.HttpRequest
Enables basic authentication by adding required header.
body - Variable in class jodd.http.HttpBase
 
body() - Method in class jodd.http.HttpBase
Returns raw body as received or set (always in ISO-8859-1 encoding).
body(String) - Method in class jodd.http.HttpBase
Sets raw body content and discards all form parameters.
body(byte[], String) - Method in class jodd.http.HttpBase
Sets raw body content and discards form parameters.
bodyBytes() - Method in class jodd.http.HttpBase
Returns raw body bytes.
bodyEncoding - Static variable in class jodd.http.HttpBase.Defaults
Default body encoding (UTF-8).
bodyMediaType - Static variable in class jodd.http.HttpBase.Defaults
Default body media type.
bodyText() - Method in class jodd.http.HttpBase
Returns body content as text.
bodyText(String, String, String) - Method in class jodd.http.HttpBase
Defines body text and content type (as media type and charset).
bodyText(String, String) - Method in class jodd.http.HttpBase
Defines body text content that will be encoded in default body encoding.
bodyText(String) - Method in class jodd.http.HttpBase
Defines body text content that will be encoded as default body media type in default body encoding if missing.
Buffer - Class in jodd.http
Holds request/response content until it is actually send.
Buffer() - Constructor for class jodd.http.Buffer
 
buffer(boolean) - Method in class jodd.http.HttpBase
Creates buffer ready to be consumed.
buffer(boolean) - Method in class jodd.http.HttpRequest
Prepares the request buffer.
buffer(boolean) - Method in class jodd.http.HttpResponse
Creates response buffer.
buildQuery(HttpMultiMap<?>, String) - Static method in class jodd.http.HttpUtil
Builds a query string from given query map.
byteArray - Variable in class jodd.http.up.ByteArrayUploadable
 
ByteArrayUploadable - Class in jodd.http.up
Uploadable wrapper of byte array.
ByteArrayUploadable(byte[], String) - Constructor for class jodd.http.up.ByteArrayUploadable
 
ByteArrayUploadable(byte[], String, String) - Constructor for class jodd.http.up.ByteArrayUploadable
 

C

callbackSize(int) - Method in class jodd.http.HttpProgressListener
Returns callback size in bytes.
capitalizeHeaderKeys - Variable in class jodd.http.HttpBase
 
capitalizeHeaderKeys() - Method in class jodd.http.HttpBase
Returns whether header keys should be strict or not, when they are modified by changing them to PascalCase.
capitalizeHeaderKeys(boolean) - Method in class jodd.http.HttpBase
Sets headers behavior.
capitalizeHeaderKeys - Static variable in class jodd.http.HttpBase.Defaults
Flag that controls if headers should be rewritten and capitalized in PascalCase.
catchTransportExceptions - Variable in class jodd.http.HttpBrowser
 
charset - Variable in class jodd.http.HttpBase
 
charset() - Method in class jodd.http.HttpBase
Returns charset, as defined by 'Content-Type' header.
charset(String) - Method in class jodd.http.HttpBase
Defines just content type charset.
clear() - Method in class jodd.http.HttpMultiMap
Clears the map.
clearCookies() - Method in class jodd.http.HttpBrowser
Deletes all cookies.
clearQueries() - Method in class jodd.http.HttpRequest
Clears all query parameters.
close() - Method in class jodd.http.HttpBrowser
Closes browser explicitly, needed when keep-alive connection is used.
close() - Method in interface jodd.http.HttpConnection
Closes connection.
close() - Method in class jodd.http.HttpResponse
Closes requests connection if it was open.
close() - Method in class jodd.http.net.SocketHttpConnection
 
connect(String) - Static method in class jodd.http.HttpRequest
Builds a CONNECT request.
connect(String, int) - Static method in class jodd.http.Sockets
Creates a socket.
connect(String, int, int) - Static method in class jodd.http.Sockets
Creates a socket with a timeout.
connection() - Method in class jodd.http.HttpRequest
Returns HttpConnection that is going to be used for sending this request.
connectionKeepAlive(boolean) - Method in class jodd.http.HttpBase
Defines "Connection" header as "Keep-Alive" or "Close".
connectionProvider() - Method in class jodd.http.HttpRequest
Returns http connection provider that was used for creating current http connection.
connectionTimeout(int) - Method in class jodd.http.HttpRequest
Defines the socket timeout (SO_TIMEOUT) in milliseconds, which is the timeout for waiting for data or, put differently, a maximum period inactivity between two consecutive data packets).
connectionTimeout() - Method in class jodd.http.HttpRequest
Returns socket connection timeout.
connectTimeout - Variable in class jodd.http.HttpRequest
 
contains(String) - Method in class jodd.http.HttpMultiMap
Returns true if name exist.
contentEncoding() - Method in class jodd.http.HttpBase
Returns "Content-Encoding" header.
contentLength() - Method in class jodd.http.HttpBase
Returns full "Content-Length" header or null if not set.
contentLength(int) - Method in class jodd.http.HttpBase
Sets the full "Content-Length" header.
contentType() - Method in class jodd.http.HttpBase
Returns full "Content-Type" header.
contentType(String) - Method in class jodd.http.HttpBase
Sets full "Content-Type" header.
contentType(String, String) - Method in class jodd.http.HttpBase
Sets "Content-Type" header by defining media-type and/or charset parameter.
contentTypeJson() - Method in class jodd.http.HttpRequest
Specifies JSON content type.
Cookie - Class in jodd.http
Cookie object.
Cookie(String, String) - Constructor for class jodd.http.Cookie
Creates cookie with specified name and value.
Cookie(String) - Constructor for class jodd.http.Cookie
Parses cookie data from given user-agent string.
cookies() - Method in class jodd.http.HttpBase
Parses cookie information from the header.
cookies - Variable in class jodd.http.HttpBrowser
 
cookies(Cookie...) - Method in class jodd.http.HttpRequest
Sets cookies to the request.
cookies() - Method in class jodd.http.HttpResponse
Returns list of valid cookies sent from server.
create(String, String) - Static method in class jodd.http.HttpRequest
Generic request builder, usually used when method is a variable.
createHttpConnection(HttpRequest) - Method in interface jodd.http.HttpConnectionProvider
Creates new HttpConnection from request.
createHttpConnection(HttpRequest) - Method in class jodd.http.net.SocketHttpConnectionProvider
Creates new connection from current request.
createSocket(String, int) - Method in class jodd.http.net.HTTPProxySocketFactory
 
createSocket(String, int, InetAddress, int) - Method in class jodd.http.net.HTTPProxySocketFactory
 
createSocket(InetAddress, int) - Method in class jodd.http.net.HTTPProxySocketFactory
 
createSocket(InetAddress, int, InetAddress, int) - Method in class jodd.http.net.HTTPProxySocketFactory
 
createSocket(String, int, int) - Method in class jodd.http.net.SocketHttpConnectionProvider
Creates a socket using socket factory.
createSocket(String, int) - Method in class jodd.http.net.Socks4ProxySocketFactory
 
createSocket(String, int, InetAddress, int) - Method in class jodd.http.net.Socks4ProxySocketFactory
 
createSocket(InetAddress, int) - Method in class jodd.http.net.Socks4ProxySocketFactory
 
createSocket(InetAddress, int, InetAddress, int) - Method in class jodd.http.net.Socks4ProxySocketFactory
 
createSocket(String, int) - Method in class jodd.http.net.Socks5ProxySocketFactory
 
createSocket(String, int, InetAddress, int) - Method in class jodd.http.net.Socks5ProxySocketFactory
 
createSocket(InetAddress, int) - Method in class jodd.http.net.Socks5ProxySocketFactory
 
createSocket(InetAddress, int, InetAddress, int) - Method in class jodd.http.net.Socks5ProxySocketFactory
 
createSSLSocket(String, int, int, boolean, boolean) - Method in class jodd.http.net.SocketHttpConnectionProvider
Creates a SSL socket.

D

DEFAULT_PORT - Static variable in class jodd.http.HttpBase.Defaults
 
defaultHeaders - Variable in class jodd.http.HttpBrowser
 
Defaults() - Constructor for class jodd.http.HttpBase.Defaults
 
delete(String) - Static method in class jodd.http.HttpRequest
Builds a DELETE request.
directProxy() - Static method in class jodd.http.ProxyInfo
Creates directProxy.

E

elapsedTime - Variable in class jodd.http.HttpBrowser
 
entries() - Method in class jodd.http.HttpMultiMap
Returns all the entries of this map.
executorService - Variable in class jodd.http.HttpTunnel
 
extractContentTypeCharset(String) - Static method in class jodd.http.HttpUtil
 
extractHeaderParameter(String, String, char) - Static method in class jodd.http.HttpUtil
Extracts header parameter.
extractKeepAliveMax(String) - Static method in class jodd.http.HttpUtil
 
extractKeepAliveTimeout(String) - Static method in class jodd.http.HttpUtil
Extract keep-alive timeout.
extractMediaType(String) - Static method in class jodd.http.HttpUtil
Extracts media-type from value of "Content Type" header.

F

file - Variable in class jodd.http.up.FileUploadable
 
fileName - Variable in class jodd.http.up.ByteArrayUploadable
 
fileName - Variable in class jodd.http.up.FileUploadable
 
FileUploadable - Class in jodd.http.up
File uploadable.
FileUploadable(File) - Constructor for class jodd.http.up.FileUploadable
 
FileUploadable(File, String, String) - Constructor for class jodd.http.up.FileUploadable
 
followRedirects - Variable in class jodd.http.HttpRequest
 
followRedirects(boolean) - Method in class jodd.http.HttpRequest
Defines if redirects responses should be followed.
form - Variable in class jodd.http.HttpBase
 
form(String, Object) - Method in class jodd.http.HttpBase
Adds the form parameter.
form(String, Object, Object...) - Method in class jodd.http.HttpBase
Sets many form parameters at once.
form(Map<String, Object>) - Method in class jodd.http.HttpBase
Sets many form parameters at once.
form() - Method in class jodd.http.HttpBase
Return map of form parameters.
formBuffer() - Method in class jodd.http.HttpBase
Creates form buffer and sets few headers.
formEncoding - Static variable in class jodd.http.HttpBase.Defaults
Default form encoding (UTF-8).
formEncoding - Variable in class jodd.http.HttpBase
 
formEncoding(String) - Method in class jodd.http.HttpBase
Defines encoding for forms parameters.
formOverwrite(String, Object) - Method in class jodd.http.HttpBase
Sets form parameter by overwriting.

G

get() - Static method in interface jodd.http.HttpConnectionProvider
Returns default implementation of connection provider.
get(String) - Method in class jodd.http.HttpMultiMap
Returns the first value from the map associated with the name.
get(String) - Static method in class jodd.http.HttpRequest
Builds a GET request.
getAll(String) - Method in class jodd.http.HttpMultiMap
Returns all values associated with the name.
getBytes() - Method in class jodd.http.up.ByteArrayUploadable
 
getBytes() - Method in class jodd.http.up.FileUploadable
 
getBytes() - Method in interface jodd.http.up.Uploadable
Returns content bytes.
getComment() - Method in class jodd.http.Cookie
Returns the comment describing the purpose of this cookie, or null if the cookie has no comment.
getContent() - Method in class jodd.http.up.ByteArrayUploadable
 
getContent() - Method in class jodd.http.up.FileUploadable
 
getContent() - Method in interface jodd.http.up.Uploadable
Returns the original content.
getDefaultSSLSocketFactory(boolean) - Method in class jodd.http.net.SocketHttpConnectionProvider
Returns default SSL socket factory allowing setting trust managers.
getDomain() - Method in class jodd.http.Cookie
Returns the domain name set for this cookie.
getElapsedTime() - Method in class jodd.http.HttpBrowser
Returns elapsed time of last HttpBrowser.sendRequest(HttpRequest) in milliseconds.
getEntry(String) - Method in class jodd.http.HttpMultiMap
Returns first entry for given name.
getExpires() - Method in class jodd.http.Cookie
 
getFileName() - Method in class jodd.http.up.ByteArrayUploadable
 
getFileName() - Method in class jodd.http.up.FileUploadable
 
getFileName() - Method in interface jodd.http.up.Uploadable
Returns content file name.
getHeader(String) - Method in class jodd.http.HeadersMultiMap
 
getHttpRequest() - Method in class jodd.http.HttpBrowser
Returns last used request.
getHttpRequest() - Method in class jodd.http.HttpResponse
Returns HttpRequest that created this response.
getHttpResponse() - Method in class jodd.http.HttpBrowser
Returns last received HTTP response object.
getInputStream() - Method in interface jodd.http.HttpConnection
Returns connection input stream.
getInputStream() - Method in class jodd.http.net.SocketHttpConnection
 
getMaxAge() - Method in class jodd.http.Cookie
Returns the maximum age of the cookie, specified in seconds, By default, -1 indicating the cookie will persist until browser shutdown.
getMimeType() - Method in class jodd.http.up.ByteArrayUploadable
 
getMimeType() - Method in class jodd.http.up.FileUploadable
 
getMimeType() - Method in interface jodd.http.up.Uploadable
Returns MIME type.
getName() - Method in class jodd.http.Cookie
Returns the name of the cookie.
getOutputStream() - Method in interface jodd.http.HttpConnection
Returns connection output stream.
getOutputStream() - Method in class jodd.http.net.SocketHttpConnection
 
getPage() - Method in class jodd.http.HttpBrowser
Returns last response HTML page.
getPath() - Method in class jodd.http.Cookie
Returns the path on the server to which the browser returns this cookie.
getProxyAddress() - Method in class jodd.http.ProxyInfo
Returns proxy address.
getProxyPassword() - Method in class jodd.http.ProxyInfo
Returns proxy password or null.
getProxyPort() - Method in class jodd.http.ProxyInfo
Returns proxy port.
getProxyType() - Method in class jodd.http.ProxyInfo
Returns proxy type.
getProxyUsername() - Method in class jodd.http.ProxyInfo
Returns proxy user name or null if no authentication required.
getSize() - Method in class jodd.http.up.ByteArrayUploadable
 
getSize() - Method in class jodd.http.up.FileUploadable
 
getSize() - Method in interface jodd.http.up.Uploadable
Returns size in bytes.
getSocket() - Method in class jodd.http.net.SocketHttpConnection
Returns Socket used by this connection.
getSslProtocol() - Method in class jodd.http.net.SocketHttpConnectionProvider
Returns current SSL protocol used.
getValue() - Method in class jodd.http.Cookie
Returns the value of the cookie.
getVersion() - Method in class jodd.http.Cookie
Returns the version of the protocol this cookie complies with.

H

head(String) - Static method in class jodd.http.HttpRequest
Builds a HEAD request.
header(String) - Method in class jodd.http.HttpBase
Returns value of header parameter.
header(String, String) - Method in class jodd.http.HttpBase
Adds header parameter.
header(Map<String, String>) - Method in class jodd.http.HttpBase
Adds many header parameters at once.
header(String, int) - Method in class jodd.http.HttpBase
Adds int value as header parameter,
header(String, long) - Method in class jodd.http.HttpBase
Adds date value as header parameter.
HEADER_ACCEPT - Static variable in class jodd.http.HttpBase
 
HEADER_ACCEPT_ENCODING - Static variable in class jodd.http.HttpBase
 
HEADER_AUTHORIZATION - Static variable in class jodd.http.HttpBase
 
HEADER_CLOSE - Static variable in class jodd.http.HttpBase
 
HEADER_CONNECTION - Static variable in class jodd.http.HttpBase
 
HEADER_CONTENT_ENCODING - Static variable in class jodd.http.HttpBase
 
HEADER_CONTENT_LENGTH - Static variable in class jodd.http.HttpBase
 
HEADER_CONTENT_TYPE - Static variable in class jodd.http.HttpBase
 
HEADER_ETAG - Static variable in class jodd.http.HttpBase
 
HEADER_HOST - Static variable in class jodd.http.HttpBase
 
HEADER_KEEP_ALIVE - Static variable in class jodd.http.HttpBase
 
headerNames() - Method in class jodd.http.HttpBase
Returns collection of all header names.
headerOverwrite(String, String) - Method in class jodd.http.HttpBase
Sets the header by overwriting it.
headerRemove(String) - Method in class jodd.http.HttpBase
Removes all header parameters for given name.
headers - Variable in class jodd.http.HttpBase
 
headers(String) - Method in class jodd.http.HttpBase
Returns all values for given header name.
HeadersMultiMap - Class in jodd.http
 
HeadersMultiMap() - Constructor for class jodd.http.HeadersMultiMap
 
host - Variable in class jodd.http.HttpRequest
 
host() - Method in class jodd.http.HttpRequest
Returns request host name.
host(String) - Method in class jodd.http.HttpRequest
Sets request host name.
hostUrl() - Method in class jodd.http.HttpRequest
Returns just host url, without path and query.
HTTP_1_0 - Static variable in class jodd.http.HttpBase
 
HTTP_1_1 - Static variable in class jodd.http.HttpBase
 
HTTP_ACCEPTED - Static variable in class jodd.http.HttpStatus
HTTP Status-Code 202: Accepted.
HTTP_BAD_GATEWAY - Static variable in class jodd.http.HttpStatus
HTTP Status-Code 502: Bad Gateway.
HTTP_BAD_METHOD - Static variable in class jodd.http.HttpStatus
HTTP Status-Code 405: Method Not Allowed.
HTTP_BAD_REQUEST - Static variable in class jodd.http.HttpStatus
HTTP Status-Code 400: Bad Request.
HTTP_CLIENT_TIMEOUT - Static variable in class jodd.http.HttpStatus
HTTP Status-Code 408: Request Time-Out.
HTTP_CONFLICT - Static variable in class jodd.http.HttpStatus
HTTP Status-Code 409: Conflict.
HTTP_CONTINUE - Static variable in class jodd.http.HttpStatus
HTTP Status-Code 100: Continue.
HTTP_CREATED - Static variable in class jodd.http.HttpStatus
HTTP Status-Code 201: Created.
HTTP_ENTITY_TOO_LARGE - Static variable in class jodd.http.HttpStatus
HTTP Status-Code 413: Request Entity Too Large.
HTTP_FORBIDDEN - Static variable in class jodd.http.HttpStatus
HTTP Status-Code 403: Forbidden.
HTTP_GATEWAY_TIMEOUT - Static variable in class jodd.http.HttpStatus
HTTP Status-Code 504: Gateway Timeout.
HTTP_GONE - Static variable in class jodd.http.HttpStatus
HTTP Status-Code 410: Gone.
HTTP_INTERNAL_ERROR - Static variable in class jodd.http.HttpStatus
HTTP Status-Code 500: Internal Server Error.
HTTP_LENGTH_REQUIRED - Static variable in class jodd.http.HttpStatus
HTTP Status-Code 411: Length Required.
HTTP_MOVED_PERMANENTLY - Static variable in class jodd.http.HttpStatus
HTTP Status-Code 301: Moved Permanently.
HTTP_MOVED_TEMPORARY - Static variable in class jodd.http.HttpStatus
HTTP Status-Code 302: Temporary Redirect.
HTTP_MULTIPLE_CHOICES - Static variable in class jodd.http.HttpStatus
HTTP Status-Code 300: Multiple Choices.
HTTP_NO_CONTENT - Static variable in class jodd.http.HttpStatus
HTTP Status-Code 204: No Content.
HTTP_NOT_ACCEPTABLE - Static variable in class jodd.http.HttpStatus
HTTP Status-Code 406: Not Acceptable.
HTTP_NOT_AUTHORITATIVE - Static variable in class jodd.http.HttpStatus
HTTP Status-Code 203: Non-Authoritative Information.
HTTP_NOT_FOUND - Static variable in class jodd.http.HttpStatus
HTTP Status-Code 404: Not Found.
HTTP_NOT_IMPLEMENTED - Static variable in class jodd.http.HttpStatus
HTTP Status-Code 501: Not Implemented.
HTTP_NOT_MODIFIED - Static variable in class jodd.http.HttpStatus
HTTP Status-Code 304: Not Modified.
HTTP_OK - Static variable in class jodd.http.HttpStatus
HTTP Status-Code 200: OK.
HTTP_PARTIAL - Static variable in class jodd.http.HttpStatus
HTTP Status-Code 206: Partial Content.
HTTP_PAYMENT_REQUIRED - Static variable in class jodd.http.HttpStatus
HTTP Status-Code 402: Payment Required.
HTTP_PRECON_FAILED - Static variable in class jodd.http.HttpStatus
HTTP Status-Code 412: Precondition Failed.
HTTP_PROXY_AUTH_REQUIRED - Static variable in class jodd.http.HttpStatus
HTTP Status-Code 407: Proxy Authentication Required.
HTTP_REQ_TOO_LONG - Static variable in class jodd.http.HttpStatus
HTTP Status-Code 414: Request-URI Too Large.
HTTP_RESET - Static variable in class jodd.http.HttpStatus
HTTP Status-Code 205: Reset Content.
HTTP_SEE_OTHER - Static variable in class jodd.http.HttpStatus
HTTP Status-Code 303: See Other.
HTTP_TEMPORARY_REDIRECT - Static variable in class jodd.http.HttpStatus
HTTP Status-Code 307: Temporary Redirect.
HTTP_UNAUTHORIZED - Static variable in class jodd.http.HttpStatus
HTTP Status-Code 401: Unauthorized.
HTTP_UNAVAILABLE - Static variable in class jodd.http.HttpStatus
HTTP Status-Code 503: Service Unavailable.
HTTP_UNSUPPORTED_TYPE - Static variable in class jodd.http.HttpStatus
HTTP Status-Code 415: Unsupported Media Type.
HTTP_USE_PROXY - Static variable in class jodd.http.HttpStatus
HTTP Status-Code 305: Use Proxy.
HTTP_VERSION_NOT_SUPPORTED - Static variable in class jodd.http.HttpStatus
HTTP Status-Code 505: HTTP Version Not Supported.
HttpBase<T> - Class in jodd.http
Base class for HttpRequest and HttpResponse.
HttpBase() - Constructor for class jodd.http.HttpBase
 
HttpBase.Defaults - Class in jodd.http
 
HttpBrowser - Class in jodd.http
Emulates HTTP Browser and persist cookies between requests.
HttpBrowser() - Constructor for class jodd.http.HttpBrowser
 
HttpConnection - Interface in jodd.http
Http connection.
httpConnection - Variable in class jodd.http.HttpRequest
 
httpConnectionProvider - Variable in class jodd.http.HttpBrowser
 
HttpConnectionProvider - Interface in jodd.http
Factory for http connections.
httpConnectionProvider - Variable in class jodd.http.HttpRequest
 
HttpConnectionProvider.Implementation - Class in jodd.http
 
HttpException - Exception in jodd.http
HTTP exception.
HttpException(Throwable) - Constructor for exception jodd.http.HttpException
 
HttpException(String) - Constructor for exception jodd.http.HttpException
 
HttpException(Object, String) - Constructor for exception jodd.http.HttpException
 
HttpException(String, Throwable) - Constructor for exception jodd.http.HttpException
 
HttpException(Object, String, Throwable) - Constructor for exception jodd.http.HttpException
 
HttpMultiMap<V> - Class in jodd.http
General purpose HTTP multi-map.
HttpMultiMap(boolean) - Constructor for class jodd.http.HttpMultiMap
 
httpProgressListener - Variable in class jodd.http.HttpBase
 
HttpProgressListener - Class in jodd.http
Http upload progress listener.
HttpProgressListener() - Constructor for class jodd.http.HttpProgressListener
 
httpProxy(String, int, String, String) - Static method in class jodd.http.ProxyInfo
Creates HTTP proxy.
HTTPProxySocketFactory - Class in jodd.http.net
Socket factory for HTTP proxy.
HTTPProxySocketFactory(ProxyInfo, int) - Constructor for class jodd.http.net.HTTPProxySocketFactory
 
httpRequest - Variable in class jodd.http.HttpBrowser
 
HttpRequest - Class in jodd.http
HTTP request.
HttpRequest() - Constructor for class jodd.http.HttpRequest
 
httpRequest - Variable in class jodd.http.HttpResponse
 
httpResponse - Variable in class jodd.http.HttpBrowser
 
HttpResponse - Class in jodd.http
HTTP response.
HttpResponse() - Constructor for class jodd.http.HttpResponse
 
HttpStatus - Class in jodd.http
HTTP status codes.
HttpStatus() - Constructor for class jodd.http.HttpStatus
 
HttpTunnel - Class in jodd.http
Simple HTTP tunnel base ready to be extended.
HttpTunnel() - Constructor for class jodd.http.HttpTunnel
 
HttpTunnel.HttpTunnelConnection - Class in jodd.http
Single connection handler that performs the tunneling.
HttpTunnelConnection(Socket) - Constructor for class jodd.http.HttpTunnel.HttpTunnelConnection
 
HttpUtil - Class in jodd.http
Few HTTP utilities.
HttpUtil() - Constructor for class jodd.http.HttpUtil
 
httpVersion - Variable in class jodd.http.HttpBase
 
httpVersion() - Method in class jodd.http.HttpBase
Returns HTTP version string.
httpVersion(String) - Method in class jodd.http.HttpBase
Sets the HTTP version string.

I

Implementation() - Constructor for class jodd.http.HttpConnectionProvider.Implementation
 
init() - Method in interface jodd.http.HttpConnection
Initializes http connection after socket is created.
init() - Method in class jodd.http.net.SocketHttpConnection
 
init() - Method in class jodd.http.net.SocketHttpSecureConnection
 
initForm() - Method in class jodd.http.HttpBase
Initializes form.
initRequest() - Method in class jodd.http.HttpRequest
Prepares request on creation.
isConnectionPersistent() - Method in class jodd.http.HttpBase
Returns true if connection is persistent.
isEmpty() - Method in class jodd.http.HttpMultiMap
Returns true if map is empty.
isError(int) - Static method in class jodd.http.HttpStatus
Returns true if status code indicates an error.
isFollowRedirects() - Method in class jodd.http.HttpRequest
Returns true if redirects are followed.
isFormMultipart() - Method in class jodd.http.HttpBase
Returns true if form contains Uploadable.
isHttpOnly() - Method in class jodd.http.Cookie
 
isKeepAlive() - Method in class jodd.http.HttpBrowser
Returns true if keep alive is used.
isRedirect(int) - Static method in class jodd.http.HttpStatus
Returns true if status code indicates a redirect.
isSecure() - Method in class jodd.http.Cookie
Returns true if the browser is sending cookies only over a secure protocol, or false if the browser can send cookies using any protocol.
isSuccessful(int) - Static method in class jodd.http.HttpStatus
Returns true if status code indicates successful result.
iterator() - Method in class jodd.http.HttpMultiMap
Returns iterator of all entries.

J

jodd.http - package jodd.http
Tiny, raw and simple socket-based HTTP client.
jodd.http.net - package jodd.http.net
Implementations and core HTTP stuff.
jodd.http.up - package jodd.http.up
Uploadable content and few implementations.

K

keepAlive - Variable in class jodd.http.HttpBrowser
 
keepAlive(HttpResponse, boolean) - Method in class jodd.http.HttpRequest
Continues using the same keep-alive connection.

L

last - Variable in class jodd.http.Buffer
 
list - Variable in class jodd.http.Buffer
 
listenPort - Variable in class jodd.http.HttpTunnel
Tunnel listening port.
location() - Method in class jodd.http.HttpResponse
Parses 'location' header to return the next location or returns null if location not specified.

M

maxRedirects - Variable in class jodd.http.HttpRequest
 
maxRedirects(int) - Method in class jodd.http.HttpRequest
Sets the max number of redirects, used when HttpRequest.followRedirects is enabled.
maxRedirects() - Method in class jodd.http.HttpRequest
Returns max number of redirects, used when HttpRequest.followRedirects is enabled.
mediaType - Variable in class jodd.http.HttpBase
 
mediaType() - Method in class jodd.http.HttpBase
Returns media type, as defined by 'Content-Type' header.
mediaType(String) - Method in class jodd.http.HttpBase
Defines just content media type.
method - Variable in class jodd.http.HttpRequest
 
method() - Method in class jodd.http.HttpRequest
Returns request method.
method(String) - Method in class jodd.http.HttpRequest
Specifies request method.
method(HttpMethod) - Method in class jodd.http.HttpRequest
 
mimeType - Variable in class jodd.http.up.ByteArrayUploadable
 
mimeType - Variable in class jodd.http.up.FileUploadable
 
monitor(HttpProgressListener) - Method in class jodd.http.HttpRequest
Registers listener that will monitor upload progress.
multipart - Variable in class jodd.http.HttpBase
 
multipart(boolean) - Method in class jodd.http.HttpRequest
Forces multipart requests.

N

names() - Method in class jodd.http.HttpMultiMap
 
newCaseInsensitiveMap() - Static method in class jodd.http.HttpMultiMap
Creates new case-insensitive multimap.
newCaseSensitiveMap() - Static method in class jodd.http.HttpMultiMap
Creates new case-insensitive map.

O

onRequest(HttpRequest) - Method in class jodd.http.HttpTunnel.HttpTunnelConnection
Invoked after income connection is parsed.
onResponse(HttpResponse) - Method in class jodd.http.HttpTunnel.HttpTunnelConnection
Invoked after target response is processed.
onSocketConnection(Socket) - Method in class jodd.http.HttpTunnel
Invoked on incoming connection.
open() - Method in class jodd.http.HttpRequest
Opens a new connection using either provided or default connection provider.
open(HttpConnectionProvider) - Method in class jodd.http.HttpRequest
Opens a new connection using given HttpConnectionProvider.
open(HttpConnection) - Method in class jodd.http.HttpRequest
Assignees provided HttpConnection for communication.
openInputStream() - Method in class jodd.http.up.ByteArrayUploadable
 
openInputStream() - Method in class jodd.http.up.FileUploadable
 
openInputStream() - Method in interface jodd.http.up.Uploadable
Opens InputStream.
options(String) - Static method in class jodd.http.HttpRequest
Builds an OPTIONS request.

P

parseQuery(String, boolean) - Static method in class jodd.http.HttpUtil
Parses query from give query string.
patch(String) - Static method in class jodd.http.HttpRequest
Builds a PATCH request.
path - Variable in class jodd.http.HttpRequest
 
path() - Method in class jodd.http.HttpRequest
Returns request path, without the query.
path(String) - Method in class jodd.http.HttpRequest
Sets request path.
populateHeaderAndBody(Buffer, Buffer, boolean) - Method in class jodd.http.HttpBase
 
port - Variable in class jodd.http.HttpRequest
 
port() - Method in class jodd.http.HttpRequest
Returns request port number.
port(int) - Method in class jodd.http.HttpRequest
Sets request port number.
post(String) - Static method in class jodd.http.HttpRequest
Builds a POST request.
prepareHeaderParameterName(String) - Static method in class jodd.http.HttpUtil
Makes nice header names.
protocol - Variable in class jodd.http.HttpRequest
 
protocol() - Method in class jodd.http.HttpRequest
Returns used protocol.
protocol(String) - Method in class jodd.http.HttpRequest
Defines protocol.
proxy - Variable in class jodd.http.net.SocketHttpConnectionProvider
 
ProxyInfo - Class in jodd.http
Proxy information.
ProxyInfo(ProxyInfo.ProxyType, String, int, String, String) - Constructor for class jodd.http.ProxyInfo
 
ProxyInfo.ProxyType - Enum in jodd.http
Proxy types.
put(String) - Static method in class jodd.http.HttpRequest
Builds a PUT request.

Q

query - Variable in class jodd.http.HttpRequest
 
query(String, String) - Method in class jodd.http.HttpRequest
Adds query parameter.
query(String, Object, Object...) - Method in class jodd.http.HttpRequest
Adds many query parameters at once.
query(Map<String, String>) - Method in class jodd.http.HttpRequest
Adds all parameters from the provided map.
query() - Method in class jodd.http.HttpRequest
Returns backend map of query parameters.
queryEncoding - Static variable in class jodd.http.HttpBase.Defaults
Default HTTP query parameters encoding (UTF-8).
queryEncoding - Variable in class jodd.http.HttpRequest
 
queryEncoding(String) - Method in class jodd.http.HttpRequest
Defines encoding for query parameters.
queryRemove(String) - Method in class jodd.http.HttpRequest
Removes query parameters for given name.
queryString(String) - Method in class jodd.http.HttpRequest
 
queryString(String, boolean) - Method in class jodd.http.HttpRequest
Sets query from provided query string.
queryString() - Method in class jodd.http.HttpRequest
Generates query string.

R

readBody(BufferedReader) - Method in class jodd.http.HttpBase
Parses body.
readCookies(HttpResponse) - Method in class jodd.http.HttpBrowser
Reads cookies from response and adds to cookies list.
readFrom(InputStream) - Static method in class jodd.http.HttpRequest
Parses input stream and creates new HttpRequest object.
readFrom(InputStream, String) - Static method in class jodd.http.HttpRequest
 
readFrom(InputStream) - Static method in class jodd.http.HttpResponse
Reads response input stream and returns response.
readHeaders(BufferedReader) - Method in class jodd.http.HttpBase
Parses headers.
remove(String) - Method in class jodd.http.HttpMultiMap
 
resolveFormEncoding() - Method in class jodd.http.HttpBase
Resolves form encodings.
resolveSocketFactory(ProxyInfo, boolean, boolean, int) - Method in class jodd.http.net.SocketHttpConnectionProvider
Returns socket factory based on proxy type and SSL requirements.
resolveSocketFactory(ProxyInfo, boolean, boolean, int) - Method in class jodd.http.net.SSLSocketHttpConnectionProvider
 
run() - Method in class jodd.http.HttpTunnel.HttpTunnelConnection
 
running - Variable in class jodd.http.HttpTunnel
 

S

secureEnabledProtocols - Variable in class jodd.http.net.SocketHttpConnectionProvider
 
send() - Method in class jodd.http.HttpRequest
Opens connection if not already open, sends request, reads response and closes the request.
sendAndReceive(Function<HttpResponse, R>) - Method in class jodd.http.HttpRequest
Syntax sugar.
sendAndReceive(Consumer<HttpResponse>) - Method in class jodd.http.HttpRequest
Syntax sugar.
sendAsync() - Method in class jodd.http.HttpRequest
Sends http request asynchronously using common fork-join pool.
sendRequest(HttpRequest) - Method in class jodd.http.HttpBrowser
Sends new request as a browser.
sendTo(OutputStream) - Method in class jodd.http.HttpBase
Sends request or response to output stream.
serverSocket - Variable in class jodd.http.HttpTunnel
 
set(HttpConnectionProvider) - Static method in class jodd.http.HttpConnectionProvider.Implementation
 
set(String, V) - Method in class jodd.http.HttpMultiMap
 
set(String) - Method in class jodd.http.HttpRequest
Sets the destination (method, host, port... ) at once.
setAll(HttpMultiMap<V>) - Method in class jodd.http.HttpMultiMap
 
setAll(Map<String, V>) - Method in class jodd.http.HttpMultiMap
 
setAll(String, Iterable<V>) - Method in class jodd.http.HttpMultiMap
 
setCatchTransportExceptions(boolean) - Method in class jodd.http.HttpBrowser
Defines if transport exceptions should be thrown.
setComment(String) - Method in class jodd.http.Cookie
Specifies a comment that describes a cookie's purpose.
setDefaultHeader(String, String) - Method in class jodd.http.HttpBrowser
Adds default header to all requests.
setDomain(String) - Method in class jodd.http.Cookie
Specifies the domain within which this cookie should be presented.
setExpires(String) - Method in class jodd.http.Cookie
 
setHeader(String, String) - Method in class jodd.http.HeadersMultiMap
 
setHostHeader() - Method in class jodd.http.HttpRequest
Sets 'Host' header from current host and port.
setHttpConnectionProvider(HttpConnectionProvider) - Method in class jodd.http.HttpBrowser
Defines HttpConnectionProvider for this browser session.
setHttpOnly(boolean) - Method in class jodd.http.Cookie
 
setKeepAlive(boolean) - Method in class jodd.http.HttpBrowser
Defines that persistent HTTP connection should be used.
setMaxAge(int) - Method in class jodd.http.Cookie
Sets the maximum age of the cookie in seconds.
setPath(String) - Method in class jodd.http.Cookie
Specifies a path for the cookie to which the client should return the cookie.
setProxyInfo(ProxyInfo) - Method in class jodd.http.HttpBrowser
Defines proxy for a browser.
setSecure(boolean) - Method in class jodd.http.Cookie
Indicates to the browser whether the cookie should only be sent using a secure protocol, such as HTTPS or SSL.
setSecuredProtocols(String) - Method in class jodd.http.net.SocketHttpConnectionProvider
CSV of default enabled secured protocols.
setSslProtocol(String) - Method in class jodd.http.net.SocketHttpConnectionProvider
Sets default SSL protocol to use.
setTimeout(int) - Method in interface jodd.http.HttpConnection
Sets the timeout for connections, in milliseconds.
setTimeout(int) - Method in class jodd.http.net.SocketHttpConnection
 
setValue(String) - Method in class jodd.http.Cookie
Assigns a new value to a cookie after the cookie is created.
setVersion(int) - Method in class jodd.http.Cookie
Sets the version of the cookie protocol this cookie complies with.
size - Variable in class jodd.http.Buffer
 
size() - Method in class jodd.http.Buffer
Returns buffer size.
size() - Method in class jodd.http.HttpMultiMap
Returns the number of keys.
size - Variable in class jodd.http.HttpProgressListener
Total size to transfer.
socket - Variable in class jodd.http.HttpTunnel.HttpTunnelConnection
 
socket - Variable in class jodd.http.net.SocketHttpConnection
 
socketBacklog - Variable in class jodd.http.HttpTunnel
Number of incoming sockets connection that can be hold before processing each.
SocketHttpConnection - Class in jodd.http.net
Socket-based HttpConnection.
SocketHttpConnection(Socket) - Constructor for class jodd.http.net.SocketHttpConnection
 
SocketHttpConnectionProvider - Class in jodd.http.net
Socket factory for HTTP proxy.
SocketHttpConnectionProvider() - Constructor for class jodd.http.net.SocketHttpConnectionProvider
 
SocketHttpSecureConnection - Class in jodd.http.net
 
SocketHttpSecureConnection(SSLSocket) - Constructor for class jodd.http.net.SocketHttpSecureConnection
 
Sockets - Class in jodd.http
Sockets factory.
Sockets() - Constructor for class jodd.http.Sockets
 
socks4Proxy(String, int, String) - Static method in class jodd.http.ProxyInfo
Creates SOCKS4 proxy.
Socks4ProxySocketFactory - Class in jodd.http.net
Socket factory for SOCKS4 proxy.
Socks4ProxySocketFactory(ProxyInfo, int) - Constructor for class jodd.http.net.Socks4ProxySocketFactory
 
socks5Proxy(String, int, String, String) - Static method in class jodd.http.ProxyInfo
Creates SOCKS5 proxy.
Socks5ProxySocketFactory - Class in jodd.http.net
Socket factory for SOCKS5 proxy.
Socks5ProxySocketFactory(ProxyInfo, int) - Constructor for class jodd.http.net.Socks5ProxySocketFactory
 
sslProtocol - Variable in class jodd.http.net.SocketHttpConnectionProvider
 
SSLSocketHttpConnectionProvider - Class in jodd.http.net
Custom SSL socket http connection provider.
SSLSocketHttpConnectionProvider(SSLSocketFactory) - Constructor for class jodd.http.net.SSLSocketHttpConnectionProvider
 
SSLSocketHttpConnectionProvider(SSLContext) - Constructor for class jodd.http.net.SSLSocketHttpConnectionProvider
 
start() - Method in class jodd.http.HttpTunnel
Starts HTTP tunnel.
statusCode - Variable in class jodd.http.HttpResponse
 
statusCode() - Method in class jodd.http.HttpResponse
Returns response status code.
statusCode(int) - Method in class jodd.http.HttpResponse
Sets response status code.
statusPhrase - Variable in class jodd.http.HttpResponse
 
statusPhrase() - Method in class jodd.http.HttpResponse
Returns response status phrase.
statusPhrase(String) - Method in class jodd.http.HttpResponse
Sets response status phrase.
stop() - Method in class jodd.http.HttpTunnel
Stops the tunnel, shutdowns the thread pool and closes server socket.

T

targetHost - Variable in class jodd.http.HttpTunnel
Target host.
targetPort - Variable in class jodd.http.HttpTunnel
Target port.
threadPoolSize - Variable in class jodd.http.HttpTunnel
The number of threads that can be executed in parallel.
timeout - Variable in class jodd.http.HttpRequest
 
timeout(int) - Method in class jodd.http.HttpRequest
Defines the socket timeout (SO_TIMEOUT) in milliseconds, which is the timeout for waiting for data or, put differently, a maximum period inactivity between two consecutive data packets).
timeout() - Method in class jodd.http.HttpRequest
Returns read timeout (SO_TIMEOUT) in milliseconds.
toByteArray() - Method in class jodd.http.HttpBase
Returns byte array of request or response.
tokenAuthentication() - Method in class jodd.http.HttpBase
Returns Bearer token or null if not set.
tokenAuthentication(String) - Method in class jodd.http.HttpRequest
Enables token-based authentication.
toString() - Method in class jodd.http.Cookie
 
toString() - Method in class jodd.http.HttpBase
Returns string representation of this request or response.
toString(boolean) - Method in class jodd.http.HttpBase
Returns full request/response, or just headers.
toString() - Method in class jodd.http.HttpMultiMap
 
trace(String) - Static method in class jodd.http.HttpRequest
Builds a TRACE request.
transferred(int) - Method in class jodd.http.HttpProgressListener
Callback for every sent chunk.
TRUST_ALL_CERTS - Static variable in class jodd.http.net.TrustManagers
Array of trust managers that allow all certificates, done in Java8 proper-way.
trustAllCertificates() - Method in class jodd.http.HttpRequest
Returns a flag if to trusts all certificates.
trustAllCerts(boolean) - Method in class jodd.http.HttpRequest
Trusts all certificates, use with caution.
TrustManagers - Class in jodd.http.net
 
TrustManagers() - Constructor for class jodd.http.net.TrustManagers
 
tunnel() - Method in class jodd.http.HttpTunnel.HttpTunnelConnection
Performs the tunneling.

U

unzip() - Method in class jodd.http.HttpResponse
Unzips GZip-ed body content, removes the content-encoding header and sets the new content-length value.
Uploadable<T> - Interface in jodd.http.up
Common interface of uploaded content for form parameters.
url() - Method in class jodd.http.HttpRequest
Returns full URL path.
useProxy(ProxyInfo) - Method in interface jodd.http.HttpConnectionProvider
Specifies proxy for provide to use.
useProxy(ProxyInfo) - Method in class jodd.http.net.SocketHttpConnectionProvider
Defines proxy to use for created sockets.
userAgent - Static variable in class jodd.http.HttpBase.Defaults
Default user agent value.

V

valueOf(String) - Static method in enum jodd.http.ProxyInfo.ProxyType
Returns the enum constant of this type with the specified name.
values() - Static method in enum jodd.http.ProxyInfo.ProxyType
Returns an array containing the constants of this enum type, in the order they are declared.
verifyHttpsHost(boolean) - Method in class jodd.http.HttpRequest
Verifies HTTPS hosts.
verifyHttpsHost() - Method in class jodd.http.HttpRequest
Returns a flag if to verify https hosts.

W

withConnectionProvider(HttpConnectionProvider) - Method in class jodd.http.HttpRequest
Uses custom connection provider when opening the connection.
wrapFormValue(Object) - Method in class jodd.http.HttpBase
Wraps non-Strings form values with uploadable content.
writeTo(Writer) - Method in class jodd.http.Buffer
Writes content to the writer.
writeTo(OutputStream) - Method in class jodd.http.Buffer
Writes content to the output stream.
writeTo(OutputStream, HttpProgressListener) - Method in class jodd.http.Buffer
Writes content to the output stream, using progress listener to track the sending progress.

_

_header(String, String, boolean) - Method in class jodd.http.HttpBase
Adds or sets header parameter.
_headerRaw(String, String, boolean) - Method in class jodd.http.HttpBase
Internal direct header setting.
_sendRequest(HttpRequest, HttpResponse) - Method in class jodd.http.HttpBrowser
Opens connection and sends a response.
_this() - Method in class jodd.http.HttpBase
 
A B C D E F G H I J K L M N O P Q R S T U V W _ 
Skip navigation links

Copyright © 2003-present Jodd Team