A B C D E F G H I J K L M N O P Q R S T U V W _
All Classes All Packages
All Classes All Packages
All Classes All Packages
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.
- AdaptiveFileUpload - Class in jodd.http.upload.impl
-
Smart
FileUploadimplementation that defer the action of what to do with uploaded file for later. - AdaptiveFileUpload(MultipartRequestInputStream, int, File, int, boolean, String[], boolean) - Constructor for class jodd.http.upload.impl.AdaptiveFileUpload
- AdaptiveFileUploadFactory - Class in jodd.http.upload.impl
-
Factory for
AdaptiveFileUpload. - AdaptiveFileUploadFactory() - Constructor for class jodd.http.upload.impl.AdaptiveFileUploadFactory
- add(String, V) - Method in class jodd.http.HttpMultiMap
- addAll(String, Iterable<V>) - Method in class jodd.http.HttpMultiMap
- addAll(Map<String, V>) - Method in class jodd.http.HttpMultiMap
- addAll(HttpMultiMap<V>) - Method in class jodd.http.HttpMultiMap
- addBefore(HttpMultiMap.MapEntry<V>) - Method in class jodd.http.HttpMultiMap.MapEntry
- addCookies(HttpRequest) - Method in class jodd.http.HttpSession
-
Add cookies to the request.
- addDefaultHeaders(HttpRequest) - Method in class jodd.http.HttpSession
-
Add default headers to the request.
- addHeader(String, String) - Method in class jodd.http.HeadersMultiMap
-
Adds new header value.
- after - Variable in class jodd.http.HttpMultiMap.MapEntry
- allowFileExtensions - Variable in class jodd.http.upload.impl.AdaptiveFileUpload
- allowFileExtensions - Variable in class jodd.http.upload.impl.AdaptiveFileUploadFactory
- append(char) - Method in class jodd.http.Buffer
-
Appends a char.
- append(int) - Method in class jodd.http.Buffer
-
Appends a number.
- append(String) - Method in class jodd.http.Buffer
-
Appends string content to buffer.
- append(Buffer) - Method in class jodd.http.Buffer
-
Appends other buffer to this one.
- append(Uploadable) - Method in class jodd.http.Buffer
-
Appends
Uploadableto buffer. - assignHttpRequest(HttpRequest) - Method in class jodd.http.HttpResponse
-
Binds
HttpRequestto this response.
B
- basicAuthentication(String, String) - Method in class jodd.http.HttpRequest
-
Enables basic authentication by adding required header.
- before - Variable in class jodd.http.HttpMultiMap.MapEntry
- body - Variable in class jodd.http.HttpBase
- body(byte[], String) - Method in class jodd.http.HttpBase
-
Sets raw body content and discards form parameters.
- body(String) - Method in class jodd.http.HttpBase
-
Sets raw body content and discards all 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.
- bodyRaw() - Method in class jodd.http.HttpBase
-
Returns raw body as received or set (always in ISO-8859-1 encoding).
- bodyText() - Method in class jodd.http.HttpBase
-
Returns
body contentas text. - bodyText(String) - Method in class jodd.http.HttpBase
-
Defines
body text contentthat will be encoded asdefault body media typeindefault body encodingif missing. - bodyText(String, String) - Method in class jodd.http.HttpBase
-
Defines
body text contentthat will be encoded indefault body encoding. - bodyText(String, String, String) - Method in class jodd.http.HttpBase
-
Defines body text and content type (as media type and charset).
- boundary - Variable in class jodd.http.upload.MultipartRequestInputStream
- breakOnError - Variable in class jodd.http.upload.impl.AdaptiveFileUpload
- breakOnError - Variable in class jodd.http.upload.impl.AdaptiveFileUploadFactory
- breakOnError(boolean) - Method in class jodd.http.upload.impl.AdaptiveFileUploadFactory
-
Specifies if upload should break on error.
- BUCKET_SIZE - Static variable in class jodd.http.HttpMultiMap
- buffer(boolean) - Method in class jodd.http.HttpBase
-
Creates
bufferready 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. - Buffer - Class in jodd.http
-
Holds request/response content until it is actually send.
- Buffer() - Constructor for class jodd.http.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.upload.ByteArrayUploadable
- ByteArrayUploadable - Class in jodd.http.upload
-
Uploadable wrapper of
byte array. - ByteArrayUploadable(byte[], String) - Constructor for class jodd.http.upload.ByteArrayUploadable
- ByteArrayUploadable(byte[], String, String) - Constructor for class jodd.http.upload.ByteArrayUploadable
C
- callbackSize(int) - Method in class jodd.http.HttpProgressListener
-
Returns callback size in bytes.
- capitalizeHeaderKeys - Variable in class jodd.http.HttpBase
- capitalizeHeaderKeys - Static variable in class jodd.http.HttpBase.Defaults
-
Flag that controls if headers should be rewritten and capitalized in PascalCase.
- 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.
- caseSensitive - Variable in class jodd.http.HttpMultiMap
- catchTransportExceptions - Variable in class jodd.http.HttpSession
- 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.
- checkUpload() - Method in class jodd.http.upload.impl.AdaptiveFileUpload
-
Determines if upload is allowed.
- clear() - Method in class jodd.http.HttpMultiMap
-
Clears the map.
- clearCookies() - Method in class jodd.http.HttpSession
-
Deletes all cookies.
- clearQueries() - Method in class jodd.http.HttpRequest
-
Clears all query parameters.
- 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.HttpSession
-
Closes session explicitly, needed when keep-alive connection is used.
- close() - Method in class jodd.http.net.SocketHttpConnection
- closeSocket(Socket) - Method in class jodd.http.net.HTTPProxySocketFactory
-
Closes socket silently.
- closeSocket(Socket) - Method in class jodd.http.net.Socks4ProxySocketFactory
-
Closes socket silently.
- closeSocket(Socket) - Method in class jodd.http.net.Socks5ProxySocketFactory
-
Closes socket silently.
- comment - Variable in class jodd.http.Cookie
- 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
HttpConnectionthat 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 - Variable in class jodd.http.net.HTTPProxySocketFactory
- connectionTimeout - Variable in class jodd.http.net.Socks4ProxySocketFactory
- connectionTimeout - Variable in class jodd.http.net.Socks5ProxySocketFactory
- connectionTimeout() - Method in class jodd.http.HttpRequest
-
Returns socket connection timeout.
- 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).
- connectTimeout - Variable in class jodd.http.HttpRequest
- contains(String) - Method in class jodd.http.HttpMultiMap
-
Returns
trueif name exist. - contentDisposition - Variable in class jodd.http.upload.FileUploadHeader
- contentEncoding() - Method in class jodd.http.HttpBase
-
Returns "Content-Encoding" header.
- contentLength() - Method in class jodd.http.HttpBase
-
Returns full "Content-Length" header or
nullif not set. - contentLength(int) - Method in class jodd.http.HttpBase
-
Sets the full "Content-Length" header.
- contentType - Variable in class jodd.http.upload.FileUploadHeader
- 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) - Constructor for class jodd.http.Cookie
-
Parses cookie data from given user-agent string.
- Cookie(String, String) - Constructor for class jodd.http.Cookie
-
Creates cookie with specified name and value.
- cookies - Variable in class jodd.http.HttpSession
- cookies() - Method in class jodd.http.HttpBase
-
Parses cookie information from the header.
- cookies() - Method in class jodd.http.HttpResponse
-
Returns list of valid cookies sent from server.
- cookies(Cookie...) - Method in class jodd.http.HttpRequest
-
Sets cookies to the request.
- copyAll(OutputStream) - Method in class jodd.http.upload.MultipartRequestInputStream
-
Copies bytes from this stream to some output until boundary is reached.
- copyMax(OutputStream, int) - Method in class jodd.http.upload.MultipartRequestInputStream
-
Copies max or less number of bytes to output stream.
- create(String, String) - Static method in class jodd.http.HttpRequest
-
Generic request builder, usually used when method is a variable.
- create(MultipartRequestInputStream) - Method in interface jodd.http.upload.FileUploadFactory
-
Creates new instance of
uploaded file. - create(MultipartRequestInputStream) - Method in class jodd.http.upload.impl.AdaptiveFileUploadFactory
-
Creates new instance of
uploaded file. - create(MultipartRequestInputStream) - Method in class jodd.http.upload.impl.DiskFileUploadFactory
-
Creates new instance of
uploaded file. - create(MultipartRequestInputStream) - Method in class jodd.http.upload.impl.MemoryFileUploadFactory
-
Creates new instance of
uploaded file. - createHttpConnection(HttpRequest) - Method in interface jodd.http.HttpConnectionProvider
-
Creates new
HttpConnectionfromrequest. - createHttpConnection(HttpRequest) - Method in class jodd.http.net.SocketHttpConnectionProvider
-
Creates new connection from current
request. - createHttpProxySocket(String, int) - Method in class jodd.http.net.HTTPProxySocketFactory
- createSocket() - Method in class jodd.http.net.HTTPProxySocketFactory
- createSocket() - Method in class jodd.http.net.Socks4ProxySocketFactory
- createSocket() - Method in class jodd.http.net.Socks5ProxySocketFactory
- createSocket(String, int) - Method in class jodd.http.net.HTTPProxySocketFactory
- createSocket(String, int) - Method in class jodd.http.net.Socks4ProxySocketFactory
- createSocket(String, int) - Method in class jodd.http.net.Socks5ProxySocketFactory
- createSocket(String, int, int) - Method in class jodd.http.net.SocketHttpConnectionProvider
-
Creates a socket using socket factory.
- createSocket(String, int, InetAddress, int) - Method in class jodd.http.net.HTTPProxySocketFactory
- createSocket(String, int, InetAddress, int) - Method in class jodd.http.net.Socks4ProxySocketFactory
- createSocket(String, int, InetAddress, int) - Method in class jodd.http.net.Socks5ProxySocketFactory
- createSocket(InetAddress, int) - Method in class jodd.http.net.HTTPProxySocketFactory
- createSocket(InetAddress, int) - Method in class jodd.http.net.Socks4ProxySocketFactory
- createSocket(InetAddress, int) - Method in class jodd.http.net.Socks5ProxySocketFactory
- createSocket(InetAddress, int, InetAddress, int) - Method in class jodd.http.net.HTTPProxySocketFactory
- createSocket(InetAddress, int, InetAddress, int) - Method in class jodd.http.net.Socks4ProxySocketFactory
- createSocket(InetAddress, int, InetAddress, int) - Method in class jodd.http.net.Socks5ProxySocketFactory
- createSocks4ProxySocket(String, int) - Method in class jodd.http.net.Socks4ProxySocketFactory
-
Connects to the SOCKS4 proxy and returns proxified socket.
- createSocks5ProxySocket(String, 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
- data - Variable in class jodd.http.upload.impl.AdaptiveFileUpload
- data - Variable in class jodd.http.upload.impl.MemoryFileUpload
- dataHeader - Variable in class jodd.http.upload.FileUploadHeader
- DEFAULT_PORT - Static variable in class jodd.http.HttpBase.Defaults
- defaultHeaders - Variable in class jodd.http.HttpSession
- Defaults() - Constructor for class jodd.http.HttpBase.Defaults
- delete() - Method in class jodd.http.upload.impl.AdaptiveFileUpload
-
Deletes file uploaded item from disk or memory.
- delete(String) - Static method in class jodd.http.HttpRequest
-
Builds a DELETE request.
- destFolder - Variable in class jodd.http.upload.impl.DiskFileUpload
- destFolder - Variable in class jodd.http.upload.impl.DiskFileUploadFactory
- directProxy() - Static method in class jodd.http.ProxyInfo
-
Creates directProxy.
- DiskFileUpload - Class in jodd.http.upload.impl
-
FileUploadthat saves uploaded files directly to destination folder. - DiskFileUpload(MultipartRequestInputStream, File, int) - Constructor for class jodd.http.upload.impl.DiskFileUpload
- DiskFileUploadFactory - Class in jodd.http.upload.impl
-
Factory for
DiskFileUpload - DiskFileUploadFactory() - Constructor for class jodd.http.upload.impl.DiskFileUploadFactory
- DiskFileUploadFactory(String) - Constructor for class jodd.http.upload.impl.DiskFileUploadFactory
- DiskFileUploadFactory(String, int) - Constructor for class jodd.http.upload.impl.DiskFileUploadFactory
- domain - Variable in class jodd.http.Cookie
E
- elapsedTime - Variable in class jodd.http.HttpSession
- ensureLast() - Method in class jodd.http.Buffer
-
Ensures that last buffer exist.
- entries - Variable in class jodd.http.HttpMultiMap
- entries() - Method in class jodd.http.HttpMultiMap
-
Returns all the entries of this map.
- eq(String, String) - Method in class jodd.http.HttpMultiMap
-
Returns
trueif two names are the same. - executorService - Variable in class jodd.http.HttpTunnel
- expires - Variable in class jodd.http.Cookie
- 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.upload.FileUploadable
- file - Variable in class jodd.http.upload.impl.DiskFileUpload
- fileExtensions - Variable in class jodd.http.upload.impl.AdaptiveFileUpload
- fileExtensions - Variable in class jodd.http.upload.impl.AdaptiveFileUploadFactory
- fileName - Variable in class jodd.http.upload.ByteArrayUploadable
- fileName - Variable in class jodd.http.upload.FileUploadable
- fileName - Variable in class jodd.http.upload.FileUploadHeader
- fileTooBig - Variable in class jodd.http.upload.FileUpload
- FileUpload - Class in jodd.http.upload
-
Encapsulates base for uploaded file.
- FileUpload(MultipartRequestInputStream, int) - Constructor for class jodd.http.upload.FileUpload
- FileUploadable - Class in jodd.http.upload
-
File uploadable.
- FileUploadable(File) - Constructor for class jodd.http.upload.FileUploadable
- FileUploadable(File, String, String) - Constructor for class jodd.http.upload.FileUploadable
- fileUploadFactory - Variable in class jodd.http.upload.MultipartStreamParser
- FileUploadFactory - Interface in jodd.http.upload
-
FileUploadfactory for handling uploaded files. - FileUploadHeader - Class in jodd.http.upload
-
Parses file upload header.
- FileUploadHeader(String) - Constructor for class jodd.http.upload.FileUploadHeader
- 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() - Method in class jodd.http.HttpBase
-
Return map of form parameters.
- 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.
- formBuffer() - Method in class jodd.http.HttpBase
-
Creates form
bufferand 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.
- formFieldName - Variable in class jodd.http.upload.FileUploadHeader
- formFileName - Variable in class jodd.http.upload.FileUploadHeader
- formOverwrite(String, Object) - Method in class jodd.http.HttpBase
-
Sets form parameter by overwriting.
- fragment - Variable in class jodd.http.HttpRequest
- fragment() - Method in class jodd.http.HttpRequest
-
Returns HTTP fragment, if specified; otherwise returns
null.
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.upload.ByteArrayUploadable
- getBytes() - Method in class jodd.http.upload.FileUploadable
- getBytes() - Method in interface jodd.http.upload.Uploadable
-
Returns content bytes.
- getComment() - Method in class jodd.http.Cookie
-
Returns the comment describing the purpose of this cookie, or
nullif the cookie has no comment. - getContent() - Method in class jodd.http.upload.ByteArrayUploadable
- getContent() - Method in class jodd.http.upload.FileUploadable
- getContent() - Method in interface jodd.http.upload.Uploadable
-
Returns the original content.
- getContentDisposition() - Method in class jodd.http.upload.FileUploadHeader
-
Returns content disposition.
- getContentDisposition(String) - Method in class jodd.http.upload.FileUploadHeader
- getContentType() - Method in class jodd.http.upload.FileUploadHeader
-
Returns uploaded content type.
- getContentType(String) - Method in class jodd.http.upload.FileUploadHeader
-
Strips content type information from requests data header.
- getDataFieldValue(String, String) - Method in class jodd.http.upload.FileUploadHeader
-
Gets value of data field or
nullif field not found. - getDefaultSSLSocketFactory(boolean) - Method in class jodd.http.net.SocketHttpConnectionProvider
-
Returns default SSL socket factory allowing setting trust managers.
- getDestinationFolder() - Method in class jodd.http.upload.impl.DiskFileUpload
-
Returns destination folder.
- getDomain() - Method in class jodd.http.Cookie
-
Returns the domain name set for this cookie.
- getElapsedTime() - Method in class jodd.http.HttpSession
-
Returns elapsed time of last
HttpSession.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
- getFile() - Method in class jodd.http.upload.impl.DiskFileUpload
-
Returns uploaded and saved file.
- getFile(String) - Method in class jodd.http.upload.MultipartStreamParser
-
Returns uploaded file.
- getFileContent() - Method in class jodd.http.upload.FileUpload
-
Returns all bytes of uploaded file.
- getFileContent() - Method in class jodd.http.upload.impl.AdaptiveFileUpload
-
Returns the content of file upload item.
- getFileContent() - Method in class jodd.http.upload.impl.DiskFileUpload
-
Returns files content from disk file.
- getFileContent() - Method in class jodd.http.upload.impl.MemoryFileUpload
-
Returns byte array containing uploaded file data.
- getFileExtensions() - Method in class jodd.http.upload.impl.AdaptiveFileUpload
- getFileInputStream() - Method in class jodd.http.upload.FileUpload
-
Returns input stream of uploaded file.
- getFileInputStream() - Method in class jodd.http.upload.impl.AdaptiveFileUpload
- getFileInputStream() - Method in class jodd.http.upload.impl.DiskFileUpload
-
Returns new buffered file input stream.
- getFileInputStream() - Method in class jodd.http.upload.impl.MemoryFileUpload
-
Returns byte array input stream.
- getFileName() - Method in class jodd.http.upload.ByteArrayUploadable
- getFileName() - Method in class jodd.http.upload.FileUploadable
- getFileName() - Method in class jodd.http.upload.FileUploadHeader
-
Returns file name (base name and extension, without full path data).
- getFileName() - Method in interface jodd.http.upload.Uploadable
-
Returns content file name.
- getFileParameterNames() - Method in class jodd.http.upload.MultipartStreamParser
-
Returns parameter names of all uploaded files.
- getFiles(String) - Method in class jodd.http.upload.MultipartStreamParser
-
Returns all uploaded files the given request parameter has.
- getFormFieldName() - Method in class jodd.http.upload.FileUploadHeader
-
Returns form field name.
- getFormFilename() - Method in class jodd.http.upload.FileUploadHeader
-
Returns complete file name as specified at client side.
- getHeader() - Method in class jodd.http.upload.FileUpload
-
Returns
FileUploadHeaderof uploaded file. - getHeader(String) - Method in class jodd.http.HeadersMultiMap
-
Returns header value.
- getHttpRequest() - Method in class jodd.http.HttpResponse
-
Returns
HttpRequestthat created this response. - getHttpRequest() - Method in class jodd.http.HttpSession
-
Returns last used request.
- getHttpResponse() - Method in class jodd.http.HttpSession
-
Returns last received
HTTP responseobject. - getInputStream() - Method in interface jodd.http.HttpConnection
-
Returns connection input stream.
- getInputStream() - Method in class jodd.http.net.SocketHttpConnection
- getKey() - Method in class jodd.http.HttpMultiMap.MapEntry
- getLastHeader() - Method in class jodd.http.upload.MultipartRequestInputStream
- getMaxAge() - Method in class jodd.http.Cookie
-
Returns the maximum age of the cookie, specified in seconds, By default,
-1indicating the cookie will persist until session shutdown. - getMaxFileSize() - Method in class jodd.http.upload.FileUpload
-
Returns max file size or
-1if there is no max file size. - getMaxFileSize() - Method in class jodd.http.upload.impl.AdaptiveFileUploadFactory
- getMaxFileSize() - Method in class jodd.http.upload.impl.DiskFileUploadFactory
- getMaxFileSize() - Method in class jodd.http.upload.impl.MemoryFileUploadFactory
- getMemoryThreshold() - Method in class jodd.http.upload.impl.AdaptiveFileUpload
- getMemoryThreshold() - Method in class jodd.http.upload.impl.AdaptiveFileUploadFactory
- getMimeSubtype() - Method in class jodd.http.upload.FileUploadHeader
-
Returns file sub type MIME.
- getMimeSubtype(String) - Method in class jodd.http.upload.FileUploadHeader
- getMimeType() - Method in class jodd.http.upload.ByteArrayUploadable
- getMimeType() - Method in class jodd.http.upload.FileUploadable
- getMimeType() - Method in class jodd.http.upload.FileUploadHeader
-
Returns file types MIME.
- getMimeType() - Method in interface jodd.http.upload.Uploadable
-
Returns MIME type.
- getMimeType(String) - Method in class jodd.http.upload.FileUploadHeader
- 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.HttpSession
-
Returns last response HTML page.
- getParameter(String) - Method in class jodd.http.upload.MultipartStreamParser
-
Returns single value of a parameter.
- getParameterNames() - Method in class jodd.http.upload.MultipartStreamParser
-
Returns the names of the parameters contained in this request.
- getParameterValues(String) - Method in class jodd.http.upload.MultipartStreamParser
-
Returns all values all of the values the given request parameter has.
- getPath() - Method in class jodd.http.Cookie
-
Returns the path on the server to which the session 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
nullif no authentication required. - getSize() - Method in class jodd.http.upload.ByteArrayUploadable
- getSize() - Method in class jodd.http.upload.FileUpload
-
Returns the file upload size or
-1if file was not uploaded. - getSize() - Method in class jodd.http.upload.FileUploadable
- getSize() - Method in interface jodd.http.upload.Uploadable
-
Returns size in bytes.
- getSocket() - Method in class jodd.http.net.SocketHttpConnection
-
Returns
Socketused by this connection. - getSslProtocol() - Method in class jodd.http.net.SocketHttpConnectionProvider
-
Returns current SSL protocol used.
- getUploadPath() - Method in class jodd.http.upload.impl.AdaptiveFileUpload
- getUploadPath() - Method in class jodd.http.upload.impl.AdaptiveFileUploadFactory
- getValue() - Method in class jodd.http.Cookie
-
Returns the value of the cookie.
- getValue() - Method in class jodd.http.HttpMultiMap.MapEntry
- getVersion() - Method in class jodd.http.Cookie
-
Returns the version of the protocol this cookie complies with.
H
- handleRedirects - Variable in class jodd.http.HttpSession
- hash - Variable in class jodd.http.HttpMultiMap.MapEntry
- hash(String) - Method in class jodd.http.HttpMultiMap
-
Calculates hash value of the input string.
- head - Variable in class jodd.http.HttpMultiMap
- head(String) - Static method in class jodd.http.HttpRequest
-
Builds a HEAD request.
- header - Variable in class jodd.http.upload.FileUpload
- header(String) - Method in class jodd.http.HttpBase
-
Returns value of header parameter.
- header(String, int) - Method in class jodd.http.HttpBase
-
Adds
intvalue as header parameter, - header(String, long) - Method in class jodd.http.HttpBase
-
Adds date value as 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_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
- HEADER_USER_AGENT - 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 - Static variable in class jodd.http.HttpBase.Defaults
-
Default headers.
- headers - Variable in class jodd.http.HttpBase
- headers(String) - Method in class jodd.http.HttpBase
-
Returns all values for given header name.
- headersClear() - Method in class jodd.http.HttpBase
-
Clears all headers.
- 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 - jodd.http.ProxyInfo.ProxyType
- 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_UNPROCESSABLE_ENTITY - Static variable in class jodd.http.HttpStatus
-
HTTP Status-Code 422: Unprocessable Entity.
- 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
HttpRequestandHttpResponse. - HttpBase() - Constructor for class jodd.http.HttpBase
- HttpBase.Defaults - Class in jodd.http
- httpConnection - Variable in class jodd.http.HttpRequest
- HttpConnection - Interface in jodd.http
-
Http connection.
- httpConnectionProvider - Static variable in class jodd.http.HttpConnectionProvider.Implementation
- httpConnectionProvider - Variable in class jodd.http.HttpRequest
- httpConnectionProvider - Variable in class jodd.http.HttpSession
- HttpConnectionProvider - Interface in jodd.http
-
Factory for
http connections. - HttpConnectionProvider.Implementation - Class in jodd.http
- HttpException - Exception in jodd.http
-
HTTP exception.
- HttpException(Object, String) - Constructor for exception jodd.http.HttpException
- HttpException(Object, String, Throwable) - Constructor for exception jodd.http.HttpException
- HttpException(String) - Constructor for exception jodd.http.HttpException
- HttpException(String, Throwable) - Constructor for exception jodd.http.HttpException
- HttpException(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
- HttpMultiMap.MapEntry<V> - Class in jodd.http
- httpOnly - Variable in class jodd.http.Cookie
- 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.HttpResponse
- httpRequest - Variable in class jodd.http.HttpSession
- HttpRequest - Class in jodd.http
-
HTTP request.
- HttpRequest() - Constructor for class jodd.http.HttpRequest
- httpResponse - Variable in class jodd.http.HttpSession
- HttpResponse - Class in jodd.http
-
HTTP response.
- HttpResponse() - Constructor for class jodd.http.HttpResponse
- HttpSession - Class in jodd.http
-
Emulates HTTP session and persist cookies between requests.
- HttpSession() - Constructor for class jodd.http.HttpSession
- 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
- index(int) - Static method in class jodd.http.HttpMultiMap
-
Calculates bucket index from the hash.
- 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.
- input - Variable in class jodd.http.upload.FileUpload
- isAbsoluteUrl(String) - Static method in class jodd.http.HttpUtil
-
Determines if path is relative or absolute.
- isAllowFileExtensions() - Method in class jodd.http.upload.impl.AdaptiveFileUpload
- isBoundary(byte) - Method in class jodd.http.upload.MultipartRequestInputStream
-
Checks if the current byte (i.e.
- isBreakOnError() - Method in class jodd.http.upload.impl.AdaptiveFileUpload
- isBreakOnError() - Method in class jodd.http.upload.impl.AdaptiveFileUploadFactory
- isConnectionPersistent() - Method in class jodd.http.HttpBase
-
Returns
trueif connection is persistent. - isEmpty() - Method in class jodd.http.HttpMultiMap
-
Returns
trueif map is empty. - isError(int) - Static method in class jodd.http.HttpStatus
-
Returns
trueif status code indicates an error. - isFile - Variable in class jodd.http.upload.FileUploadHeader
- isFile() - Method in class jodd.http.upload.FileUploadHeader
-
Returns
trueif uploaded data are correctly marked as a file. - isFileTooBig() - Method in class jodd.http.upload.FileUpload
-
Returns
trueif file is too big. - isFollowRedirects() - Method in class jodd.http.HttpRequest
-
Returns
trueif redirects are followed. - isFormMultipart() - Method in class jodd.http.HttpBase
-
Returns
trueif form containsUploadable. - isHttpOnly() - Method in class jodd.http.Cookie
- isInMemory() - Method in class jodd.http.upload.FileUpload
-
Returns
trueif uploaded file content is stored in memory. - isInMemory() - Method in class jodd.http.upload.impl.AdaptiveFileUpload
-
Returns
trueif file upload resides in memory. - isInMemory() - Method in class jodd.http.upload.impl.DiskFileUpload
-
Returns
falseas uploaded file is stored on disk. - isInMemory() - Method in class jodd.http.upload.impl.MemoryFileUpload
-
Returns
trueas uploaded file is stored in memory. - isKeepAlive() - Method in class jodd.http.HttpSession
-
Returns
trueif keep alive is used. - isParsed() - Method in class jodd.http.upload.MultipartStreamParser
-
Returns
trueif multi-part request is already loaded. - isRedirect(int) - Static method in class jodd.http.HttpStatus
-
Returns
trueif status code indicates a redirect. - isSecure() - Method in class jodd.http.Cookie
-
Returns
trueif the session is sending cookies only over a secure protocol, orfalseif the session can send cookies using any protocol. - isSuccessful(int) - Static method in class jodd.http.HttpStatus
-
Returns
trueif status code indicates successful result. - isUploaded() - Method in class jodd.http.upload.FileUpload
-
Returns
trueif file was uploaded. - isValid() - Method in class jodd.http.upload.FileUpload
-
Returns
trueif upload process went correctly. - 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.upload - package jodd.http.upload
-
Uploadable content and few implementations.
- jodd.http.upload.impl - package jodd.http.upload.impl
K
- keepAlive - Variable in class jodd.http.HttpSession
- keepAlive(HttpResponse, boolean) - Method in class jodd.http.HttpRequest
-
Continues using the same keep-alive connection.
- key - Variable in class jodd.http.HttpMultiMap.MapEntry
L
- last - Variable in class jodd.http.Buffer
- lastHeader - Variable in class jodd.http.upload.MultipartRequestInputStream
- 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 the 'location' header and returns an absolute URL for the provided path.
M
- MapEntry(int, String, V) - Constructor for class jodd.http.HttpMultiMap.MapEntry
- matchFileExtension() - Method in class jodd.http.upload.impl.AdaptiveFileUpload
- maxAge - Variable in class jodd.http.Cookie
- maxFileSize - Variable in class jodd.http.upload.FileUpload
- maxFileSize - Variable in class jodd.http.upload.impl.AdaptiveFileUploadFactory
- maxFileSize - Variable in class jodd.http.upload.impl.DiskFileUploadFactory
- maxFileSize - Variable in class jodd.http.upload.impl.MemoryFileUploadFactory
- maxRedirects - Variable in class jodd.http.HttpRequest
- maxRedirects() - Method in class jodd.http.HttpRequest
-
Returns max number of redirects, used when
HttpRequest.followRedirectsis enabled. - maxRedirects(int) - Method in class jodd.http.HttpRequest
-
Sets the max number of redirects, used when
HttpRequest.followRedirectsis 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.
- MemoryFileUpload - Class in jodd.http.upload.impl
-
FileUploadthat stores uploaded files in memory byte array. - MemoryFileUpload(MultipartRequestInputStream, int) - Constructor for class jodd.http.upload.impl.MemoryFileUpload
- MemoryFileUploadFactory - Class in jodd.http.upload.impl
-
Factory for
jodd.net.upload.impl.MemoryFileUpload. - MemoryFileUploadFactory() - Constructor for class jodd.http.upload.impl.MemoryFileUploadFactory
- memoryThreshold - Variable in class jodd.http.upload.impl.AdaptiveFileUpload
- memoryThreshold - Variable in class jodd.http.upload.impl.AdaptiveFileUploadFactory
- 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
- mimeSubtype - Variable in class jodd.http.upload.FileUploadHeader
- mimeType - Variable in class jodd.http.upload.ByteArrayUploadable
- mimeType - Variable in class jodd.http.upload.FileUploadable
- mimeType - Variable in class jodd.http.upload.FileUploadHeader
- monitor(HttpProgressListener) - Method in class jodd.http.HttpRequest
-
Registers
listenerthat will monitor upload progress. - multipart - Variable in class jodd.http.HttpBase
- multipart(boolean) - Method in class jodd.http.HttpRequest
-
Forces multipart requests.
- MultipartRequestInputStream - Class in jodd.http.upload
-
Extended input stream based on buffered requests input stream.
- MultipartRequestInputStream(InputStream) - Constructor for class jodd.http.upload.MultipartRequestInputStream
- MultipartStreamParser - Class in jodd.http.upload
-
Generic, serlvets-free multipart request input stream parser.
- MultipartStreamParser() - Constructor for class jodd.http.upload.MultipartStreamParser
- MultipartStreamParser(FileUploadFactory) - Constructor for class jodd.http.upload.MultipartStreamParser
N
- name - Variable in class jodd.http.Cookie
- 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.
- next - Variable in class jodd.http.HttpMultiMap.MapEntry
- NONE - jodd.http.ProxyInfo.ProxyType
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
connectionusing either provided ordefaultconnection provider. - open(HttpConnection) - Method in class jodd.http.HttpRequest
-
Assignees provided
HttpConnectionfor communication. - open(HttpConnectionProvider) - Method in class jodd.http.HttpRequest
-
Opens a new
connectionusing givenHttpConnectionProvider. - openInputStream() - Method in class jodd.http.upload.ByteArrayUploadable
- openInputStream() - Method in class jodd.http.upload.FileUploadable
- openInputStream() - Method in interface jodd.http.upload.Uploadable
-
Opens
InputStream. - options(String) - Static method in class jodd.http.HttpRequest
-
Builds an OPTIONS request.
P
- parsed - Variable in class jodd.http.upload.MultipartStreamParser
- parseQuery(String, boolean) - Static method in class jodd.http.HttpUtil
-
Parses query from give query string.
- parseRequestStream(InputStream, String) - Method in class jodd.http.upload.MultipartStreamParser
-
Extracts uploaded files and parameters from the request data.
- patch(String) - Static method in class jodd.http.HttpRequest
-
Builds a PATCH request.
- path - Variable in class jodd.http.Cookie
- path - Variable in class jodd.http.HttpRequest
- path - Variable in class jodd.http.upload.FileUploadHeader
- 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.
- processStream() - Method in class jodd.http.upload.FileUpload
-
Process request input stream.
- processStream() - Method in class jodd.http.upload.impl.AdaptiveFileUpload
- processStream() - Method in class jodd.http.upload.impl.DiskFileUpload
- processStream() - Method in class jodd.http.upload.impl.MemoryFileUpload
-
Reads data from input stream into byte array and stores file size.
- 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.HTTPProxySocketFactory
- proxy - Variable in class jodd.http.net.SocketHttpConnectionProvider
- proxy - Variable in class jodd.http.net.Socks4ProxySocketFactory
- proxy - Variable in class jodd.http.net.Socks5ProxySocketFactory
- proxyAddress - Variable in class jodd.http.ProxyInfo
- 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.
- proxyPassword - Variable in class jodd.http.ProxyInfo
- proxyPort - Variable in class jodd.http.ProxyInfo
- proxyType - Variable in class jodd.http.ProxyInfo
- ProxyType() - Constructor for enum jodd.http.ProxyInfo.ProxyType
- proxyUsername - Variable in class jodd.http.ProxyInfo
- put(String) - Static method in class jodd.http.HttpRequest
-
Builds a PUT request.
- putFile(String, FileUpload) - Method in class jodd.http.upload.MultipartStreamParser
- putParameter(String, String) - Method in class jodd.http.upload.MultipartStreamParser
- putParameters(String, String[]) - Method in class jodd.http.upload.MultipartStreamParser
Q
- query - Variable in class jodd.http.HttpRequest
- query() - Method in class jodd.http.HttpRequest
-
Returns backend map of query parameters.
- query(String, Object, Object...) - Method in class jodd.http.HttpRequest
-
Adds many query parameters at once.
- query(String, String) - Method in class jodd.http.HttpRequest
-
Adds query parameter.
- query(Map<String, String>) - Method in class jodd.http.HttpRequest
-
Adds all parameters from the provided map.
- 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() - Method in class jodd.http.HttpRequest
-
Generates query string.
- queryString(String) - Method in class jodd.http.HttpRequest
- queryString(String, boolean) - Method in class jodd.http.HttpRequest
-
Sets query from provided query string.
R
- readBody(BufferedReader) - Method in class jodd.http.HttpBase
-
Parses body.
- readBoundary() - Method in class jodd.http.upload.MultipartRequestInputStream
-
Reads boundary from the input stream.
- readByte() - Method in class jodd.http.upload.MultipartRequestInputStream
-
Reads expected byte.
- readBytes(InputStream, byte[], int) - Method in class jodd.http.net.Socks5ProxySocketFactory
- readCookies(HttpResponse) - Method in class jodd.http.HttpSession
-
Reads cookies from response and adds to cookies list.
- readDataHeader(String) - Method in class jodd.http.upload.MultipartRequestInputStream
-
Reads data header from the input stream.
- readDataHeaderString(String) - Method in class jodd.http.upload.MultipartRequestInputStream
- readFrom(InputStream) - Static method in class jodd.http.HttpRequest
-
Parses input stream and creates new
HttpRequestobject. - readFrom(InputStream) - Static method in class jodd.http.HttpResponse
-
Reads response input stream and returns
response. - readFrom(InputStream, String) - Static method in class jodd.http.HttpRequest
- readHeaders(BufferedReader) - Method in class jodd.http.HttpBase
-
Parses headers.
- remove() - Method in class jodd.http.HttpMultiMap.MapEntry
- remove(String) - Method in class jodd.http.HttpMultiMap
- requestFiles - Variable in class jodd.http.upload.MultipartStreamParser
- requestParameters - Variable in class jodd.http.upload.MultipartStreamParser
- 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
- RESPONSE_PATTERN - Static variable in class jodd.http.net.HTTPProxySocketFactory
- run() - Method in class jodd.http.HttpTunnel.HttpTunnelConnection
- running - Variable in class jodd.http.HttpTunnel
S
- secure - Variable in class jodd.http.Cookie
- secureEnabledProtocols - Variable in class jodd.http.net.SocketHttpConnectionProvider
- send() - Method in class jodd.http.HttpRequest
-
Opens connectionif not already open, sends request, reads response and closes the request. - sendAndReceive(Consumer<HttpResponse>) - Method in class jodd.http.HttpRequest
-
Syntax sugar.
- sendAndReceive(Function<HttpResponse, R>) - 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.HttpSession
-
Sends new request using a session.
- sendTo(OutputStream) - Method in class jodd.http.HttpBase
-
Sends request or response to output stream.
- serverSocket - Variable in class jodd.http.HttpTunnel
- set(String) - Method in class jodd.http.HttpRequest
-
Sets the destination (method, host, port...
- set(String, V) - Method in class jodd.http.HttpMultiMap
- set(HttpConnectionProvider) - Static method in class jodd.http.HttpConnectionProvider.Implementation
- setAll(String, Iterable<V>) - Method in class jodd.http.HttpMultiMap
- setAll(Map<String, V>) - Method in class jodd.http.HttpMultiMap
- setAll(HttpMultiMap<V>) - Method in class jodd.http.HttpMultiMap
- setBreakOnError(boolean) - Method in class jodd.http.upload.impl.AdaptiveFileUploadFactory
- setCatchTransportExceptions(boolean) - Method in class jodd.http.HttpSession
-
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.HttpSession
-
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
- setFileExtensions(String[], boolean) - Method in class jodd.http.upload.impl.AdaptiveFileUploadFactory
-
Allow or disallow set of file extensions.
- setHandleRedirects(boolean) - Method in class jodd.http.HttpSession
-
Handles redirects by default.
- setHeader(String, String) - Method in class jodd.http.HeadersMultiMap
-
Sets the header value.
- setHostHeader() - Method in class jodd.http.HttpRequest
-
Sets 'Host' header from current host and port.
- setHttpConnectionProvider(HttpConnectionProvider) - Method in class jodd.http.HttpSession
-
Defines
HttpConnectionProviderfor this session. - setHttpOnly(boolean) - Method in class jodd.http.Cookie
- setKeepAlive(boolean) - Method in class jodd.http.HttpSession
-
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.
- setMaxFileSize(int) - Method in class jodd.http.upload.impl.AdaptiveFileUploadFactory
-
Sets maximum file upload size.
- setMaxFileSize(int) - Method in class jodd.http.upload.impl.DiskFileUploadFactory
-
Sets maximum file upload size.
- setMaxFileSize(int) - Method in class jodd.http.upload.impl.MemoryFileUploadFactory
-
Sets maximum file upload size.
- setMemoryThreshold(int) - Method in class jodd.http.upload.impl.AdaptiveFileUploadFactory
-
Specifies per file memory limit for keeping uploaded files in the memory.
- setName(String) - Method in class jodd.http.Cookie
-
Sets the cookie name and checks for validity.
- setParsed() - Method in class jodd.http.upload.MultipartStreamParser
-
Sets the loaded flag that indicates that input stream is loaded and parsed.
- 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.HttpSession
-
Defines proxy for a session
- setSecure(boolean) - Method in class jodd.http.Cookie
-
Indicates to the session 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
- setUploadDir(String) - Method in class jodd.http.upload.impl.DiskFileUploadFactory
- setUploadPath(File) - Method in class jodd.http.upload.impl.AdaptiveFileUploadFactory
-
Specifies the upload path.
- setValue(String) - Method in class jodd.http.Cookie
-
Assigns a new value to a cookie after the cookie is created.
- setValue(V) - Method in class jodd.http.HttpMultiMap.MapEntry
- 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 - Variable in class jodd.http.HttpProgressListener
-
Total size to transfer.
- size - Variable in class jodd.http.upload.FileUpload
- size() - Method in class jodd.http.Buffer
-
Returns buffer size.
- size() - Method in class jodd.http.HttpMultiMap
-
Returns the number of keys.
- skipBytes(int) - Method in class jodd.http.upload.MultipartRequestInputStream
-
Skips specified number of bytes.
- skipToBoundary() - Method in class jodd.http.upload.MultipartRequestInputStream
-
Skips to the boundary and returns total number of bytes skipped.
- 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.
- socketFactory - Variable in class jodd.http.net.SSLSocketHttpConnectionProvider
- 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
- SOCKS4 - jodd.http.ProxyInfo.ProxyType
- 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
- SOCKS5 - jodd.http.ProxyInfo.ProxyType
- 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
- sslSocket - Variable in class jodd.http.net.SocketHttpSecureConnection
- SSLSocketHttpConnectionProvider - Class in jodd.http.net
-
Custom SSL socket http connection provider.
- SSLSocketHttpConnectionProvider(SSLContext) - Constructor for class jodd.http.net.SSLSocketHttpConnectionProvider
- SSLSocketHttpConnectionProvider(SSLSocketFactory) - 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.
- tempFile - Variable in class jodd.http.upload.impl.AdaptiveFileUpload
- 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 - Variable in class jodd.http.net.SocketHttpConnection
- timeout() - Method in class jodd.http.HttpRequest
-
Returns read timeout (SO_TIMEOUT) in milliseconds.
- 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).
- TMP_FILE_SUFFIX - Static variable in class jodd.http.upload.impl.AdaptiveFileUpload
- 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
nullif 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() - Method in class jodd.http.HttpMultiMap.MapEntry
- toString() - Method in class jodd.http.HttpMultiMap
- toString() - Method in class jodd.http.upload.FileUpload
-
Returns basic information about the uploaded file.
- toString(boolean) - Method in class jodd.http.HttpBase
-
Returns full request/response, or just headers.
- 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 - Variable in class jodd.http.HttpRequest
- 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.upload
-
Common interface of uploaded content for
form parameters. - uploadPath - Variable in class jodd.http.upload.impl.AdaptiveFileUpload
- uploadPath - Variable in class jodd.http.upload.impl.AdaptiveFileUploadFactory
- url() - Method in class jodd.http.HttpRequest
-
Returns full URL path.
- useProxy(ProxyInfo) - Method in interface jodd.http.HttpConnectionProvider
-
Specifies
proxyfor provide to use. - useProxy(ProxyInfo) - Method in class jodd.http.net.SocketHttpConnectionProvider
-
Defines proxy to use for created sockets.
V
- valid - Variable in class jodd.http.upload.FileUpload
- value - Variable in class jodd.http.Cookie
- value - Variable in class jodd.http.HttpMultiMap.MapEntry
- 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 - Variable in class jodd.http.HttpRequest
- verifyHttpsHost() - Method in class jodd.http.HttpRequest
-
Returns a flag if to verify https hosts.
- verifyHttpsHost(boolean) - Method in class jodd.http.HttpRequest
-
Verifies HTTPS hosts.
- version - Variable in class jodd.http.Cookie
W
- withConnectionProvider(HttpConnectionProvider) - Method in class jodd.http.HttpRequest
-
Uses custom connection provider when
openingthe connection. - wrapFormValue(Object) - Method in class jodd.http.HttpBase
-
Wraps non-Strings form values with
uploadable content. - write(File) - Method in class jodd.http.upload.impl.AdaptiveFileUpload
-
Writes file upload item to destination folder or to destination file.
- write(String) - Method in class jodd.http.upload.impl.AdaptiveFileUpload
-
Writes file uploaded item.
- 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.
- writeTo(Writer) - Method in class jodd.http.Buffer
-
Writes content to the writer.
_
- _add(int, int, String, V) - Method in class jodd.http.HttpMultiMap
- _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.
- _remove(int, int, String) - Method in class jodd.http.HttpMultiMap
- _reset() - Method in class jodd.http.HttpRequest
-
Resets the request by resetting all additional values added during the sending.
- _send() - Method in class jodd.http.HttpRequest
- _sendRequest(HttpRequest, HttpResponse) - Method in class jodd.http.HttpSession
-
Opens connection and sends a previous response.
- _set(Iterable<Map.Entry<String, V>>) - Method in class jodd.http.HttpMultiMap
- _this() - Method in class jodd.http.HttpBase
All Classes All Packages