Index
All Classes and Interfaces|All Packages|Constant Field Values
A
- ACCEPTED - Static variable in class org.attribyte.api.http.Response.Code
-
Request was accepted (202).
- addAttribute(String, Object) - Method in class org.attribyte.api.http.RequestBuilder
-
Adds an attribute.
- addAttribute(String, Object) - Method in class org.attribyte.api.http.ResponseBuilder
-
Adds an attribute.
- addAttributes(Map<String, Object>) - Method in class org.attribyte.api.http.RequestBuilder
-
Adds a map of attributes.
- addAttributes(Map<String, Object>) - Method in class org.attribyte.api.http.ResponseBuilder
-
Adds a map of attributes.
- addAuth(Request, String, String) - Method in class org.attribyte.api.http.AuthScheme
-
Adds authentication credentials to a request.
- addAuth(Request, String, String) - Method in class org.attribyte.api.http.impl.BasicAuthScheme
- addCookie(Cookie) - Method in class org.attribyte.api.http.RequestBuilder
-
Adds a cookie.
- addHeader(String, String) - Method in class org.attribyte.api.http.RequestBuilder
-
Adds a header.
- addHeader(String, String) - Method in class org.attribyte.api.http.ResponseBuilder
-
Adds a header.
- addHeaders(Collection<Header>) - Method in class org.attribyte.api.http.Request
-
Adds headers to the existing headers, replacing any that are duplicated.
- addHeaders(Collection<Header>) - Method in class org.attribyte.api.http.RequestBuilder
-
Adds a collection of headers.
- addHeaders(Map<?, ?>) - Method in class org.attribyte.api.http.RequestBuilder
-
Adds a map of headers.
- addHeaders(Map<?, ?>) - Method in class org.attribyte.api.http.ResponseBuilder
-
Adds a map of headers.
- addParameter(String, String) - Method in class org.attribyte.api.http.FormPostRequestBuilder
-
Adds a parameter.
- addParameters(Map<?, ?>) - Method in class org.attribyte.api.http.FormPostRequestBuilder
-
Adds a map of parameters.
- addValue(String) - Method in class org.attribyte.api.http.Header
-
Returns a copy of this header with the new value added.
- addValue(String) - Method in class org.attribyte.api.http.Parameter
-
Returns a copy of this parameter with the new value added.
- AsyncClient - Interface in org.attribyte.api.http
-
Sends requests asynchronously with a "future" result.
- asyncSend(Request) - Method in interface org.attribyte.api.http.AsyncClient
-
Sends a request with default options that completes with a
ListenableFuture. - asyncSend(Request) - Method in class org.attribyte.api.http.impl.jdk.JdkClient
- asyncSend(Request) - Method in class org.attribyte.api.http.impl.jetty.JettyClient
- asyncSend(Request, RequestOptions) - Method in interface org.attribyte.api.http.AsyncClient
-
Sends a request with specified options that completes with a
ListenableFuture. - asyncSend(Request, RequestOptions) - Method in class org.attribyte.api.http.impl.jdk.JdkClient
- asyncSend(Request, RequestOptions) - Method in class org.attribyte.api.http.impl.jetty.JettyClient
- attributes - Variable in class org.attribyte.api.http.Request
-
An immutable map of attributes.
- attributes - Variable in class org.attribyte.api.http.RequestBuilder
- attributes - Variable in class org.attribyte.api.http.Response
-
An immutable map of attributes.
- AUTH_HEADER - Static variable in class org.attribyte.api.http.impl.BasicAuthScheme
- authenticate(Request, String, String) - Method in class org.attribyte.api.http.AuthScheme
-
Authenticates the request.
- authenticate(Request, String, String) - Method in class org.attribyte.api.http.impl.BasicAuthScheme
- AUTHENTICATE_RESPONSE_HEADER - Static variable in class org.attribyte.api.http.AuthScheme
-
The authenticate response header name ('WWW-Authenticate').
- authenticateResponseHeader - Variable in class org.attribyte.api.http.AuthScheme
- Authorizer - Interface in org.attribyte.api.http
-
Examines request headers, parameters or content to determine if a request is authorized.
- AuthScheme - Class in org.attribyte.api.http
-
Defines a HTTP authentication scheme.
- AuthScheme(String, String) - Constructor for class org.attribyte.api.http.AuthScheme
-
Creates an authentication scheme.
B
- BAD_REQUEST - Static variable in class org.attribyte.api.http.Response.Code
-
Request problem (400).
- BasicAuthScheme - Class in org.attribyte.api.http.impl
-
The Standard (insecure) "Basic" scheme.
- BasicAuthScheme() - Constructor for class org.attribyte.api.http.impl.BasicAuthScheme
-
Create a scheme with no realm.
- BasicAuthScheme(String) - Constructor for class org.attribyte.api.http.impl.BasicAuthScheme
-
Create a scheme with a realm.
- body - Variable in class org.attribyte.api.http.BodyResponse
-
The (immutable) body.
- body - Variable in class org.attribyte.api.http.Request
-
The request body.
- body - Variable in class org.attribyte.api.http.StreamedResponse
-
The source for the body.
- bodyFromInputStream(InputStream, int) - Static method in class org.attribyte.api.http.Request
-
Reads the request body from an input stream.
- BodyResponse - Class in org.attribyte.api.http
-
A response that holds the full response body in-memory.
- Bridge - Class in org.attribyte.api.http.impl.jakarta
-
Utilities to bridge Jakarta Servlet API to Attribyte API.
- Bridge - Class in org.attribyte.api.http.impl.servlet
-
Utilities to bridge servlet API to Attribyte API.
- Bridge() - Constructor for class org.attribyte.api.http.impl.jakarta.Bridge
- Bridge() - Constructor for class org.attribyte.api.http.impl.servlet.Bridge
- buildAuthHeaderValue(String, String) - Static method in class org.attribyte.api.http.impl.BasicAuthScheme
-
Builds an auth header.
- Builder() - Constructor for class org.attribyte.api.http.ClientOptions.Builder
-
Create an empty builder.
- Builder(ClientOptions) - Constructor for class org.attribyte.api.http.ClientOptions.Builder
-
Create a builder with defaults from options.
C
- caseSensitiveParameters - Variable in class org.attribyte.api.http.Request
-
If the request has parameters, are they case-sensitive?
- Client - Interface in org.attribyte.api.http
-
Defines the HTTP client interface.
- ClientOptions - Class in org.attribyte.api.http
-
Configuration options for clients.
- ClientOptions(String, Properties) - Constructor for class org.attribyte.api.http.ClientOptions
-
Creates options from properties.
- ClientOptions.Builder - Class in org.attribyte.api.http
-
Builds immutable instances of client options.
- Code() - Constructor for class org.attribyte.api.http.Response.Code
- completableSend(Request) - Method in interface org.attribyte.api.http.AsyncClient
-
Sends a request with default options that completes with a
CompletableFuture. - completableSend(Request) - Method in class org.attribyte.api.http.impl.jdk.JdkClient
- completableSend(Request) - Method in class org.attribyte.api.http.impl.jetty.JettyClient
- completableSend(Request, RequestOptions) - Method in interface org.attribyte.api.http.AsyncClient
-
Sends a request with specified options that completes with a
CompletableFuture. - completableSend(Request, RequestOptions) - Method in class org.attribyte.api.http.impl.jdk.JdkClient
- completableSend(Request, RequestOptions) - Method in class org.attribyte.api.http.impl.jetty.JettyClient
- connectionTimeoutMillis - Variable in class org.attribyte.api.http.ClientOptions
-
The maximum amount of time to wait to establish a connection (5s).
- CONTENT_TYPE - Static variable in class org.attribyte.api.http.Header
-
The content type header.
- Cookie - Class in org.attribyte.api.http
-
An immutable HTTP cookie.
- Cookie(String, String, String, String, int, boolean, boolean) - Constructor for class org.attribyte.api.http.Cookie
-
Creates a response cookie.
- cookies - Variable in class org.attribyte.api.http.Request
-
An immutable list of cookies.
- cookies - Variable in class org.attribyte.api.http.RequestBuilder
- cookies - Variable in class org.attribyte.api.http.Response
-
An immutable list of cookies.
- cookieStore - Variable in class org.attribyte.api.http.ClientOptions
-
The cookie store, if any.
- create() - Method in class org.attribyte.api.http.ClientOptions.Builder
-
Creates the options.
- create() - Method in class org.attribyte.api.http.DeleteRequestBuilder
- create() - Method in class org.attribyte.api.http.FormPostRequestBuilder
- create() - Method in class org.attribyte.api.http.GetRequestBuilder
- create() - Method in class org.attribyte.api.http.HeadRequestBuilder
- create() - Method in class org.attribyte.api.http.OptionsRequestBuilder
- create() - Method in class org.attribyte.api.http.PatchRequestBuilder
- create() - Method in class org.attribyte.api.http.PostRequestBuilder
- create() - Method in class org.attribyte.api.http.PutRequestBuilder
- create() - Method in class org.attribyte.api.http.RequestBuilder
-
Creates the immutable request after all headers, parameters and attributes are added.
- create() - Method in class org.attribyte.api.http.ResponseBuilder
-
Creates an immutable response.
- createStreamed() - Method in class org.attribyte.api.http.ResponseBuilder
-
Creates an immutable streamed response.
D
- DebugListener - Class in org.attribyte.api.http.impl.jetty
- DebugListener() - Constructor for class org.attribyte.api.http.impl.jetty.DebugListener
- DEFAULT - Static variable in class org.attribyte.api.http.RequestOptions
-
The default request options.
- DEFAULT_FOLLOW_REDIRECTS - Static variable in class org.attribyte.api.http.RequestOptions
-
The default follow redirects (true).
- DEFAULT_MAX_RESPONSE_BYTES - Static variable in class org.attribyte.api.http.RequestOptions
-
The maximum response size (10 MB).
- DEFAULT_TIMEOUT_SECONDS - Static variable in class org.attribyte.api.http.RequestOptions
-
The maximum time to wait for a response (5 seconds).
- DEFAULT_UNAUTHORIZED_MESSAGE - Static variable in class org.attribyte.api.http.AuthScheme
-
The default message sent when unauthorized ('Authorization Required').
- DELETE - Enum constant in enum class org.attribyte.api.http.Request.Method
-
The HTTP
DELETEmethod. - DeleteRequestBuilder - Class in org.attribyte.api.http
-
Builds immutable HTTP
DELETErequests. - DeleteRequestBuilder(String) - Constructor for class org.attribyte.api.http.DeleteRequestBuilder
-
Creates a
DELETErequest builder with URI parsed from a string. - DeleteRequestBuilder(String, boolean) - Constructor for class org.attribyte.api.http.DeleteRequestBuilder
-
Creates a
DELETErequest builder with URI parsed from a string with parameter case-sensitivity specified. - DeleteRequestBuilder(String, Map<?, ?>) - Constructor for class org.attribyte.api.http.DeleteRequestBuilder
-
Creates a
DELETErequest builder with URI parsed from a string and pre-parsed parameters. - DeleteRequestBuilder(URI) - Constructor for class org.attribyte.api.http.DeleteRequestBuilder
-
Creates a
DELETErequest builder. - DeleteRequestBuilder(URI, boolean) - Constructor for class org.attribyte.api.http.DeleteRequestBuilder
-
Creates a
DELETErequest builder with parameter case-sensitivity specified. - domain - Variable in class org.attribyte.api.http.Cookie
-
The domain.
E
- equals(Object) - Method in class org.attribyte.api.http.AuthScheme
F
- followRedirects - Variable in class org.attribyte.api.http.ClientOptions
-
Should redirects be followed (true).
- followRedirects - Variable in class org.attribyte.api.http.RequestOptions
-
Are redirects followed?
- followRedirects() - Method in class org.attribyte.api.http.RequestOptions
-
Create request options that follows redirects.
- FORBIDDEN - Static variable in class org.attribyte.api.http.Response.Code
-
Access to resource is forbidden (403).
- FORM_ENCODED_CONTENT_TYPE - Static variable in class org.attribyte.api.http.Request
-
The expected value for a form encoded header:
application/x-www-form-urlencoded. - FormPostRequestBuilder - Class in org.attribyte.api.http
-
Builds immutable HTTP
POSTrequests with body specified asapplication/x-www-form-urlencodedparameters. - FormPostRequestBuilder(String) - Constructor for class org.attribyte.api.http.FormPostRequestBuilder
-
Creates a
POSTrequest builder. - FormPostRequestBuilder(URI) - Constructor for class org.attribyte.api.http.FormPostRequestBuilder
-
Creates a
POSTrequest builder. - fromServletRequest(HttpServletRequest, int) - Static method in class org.attribyte.api.http.impl.jakarta.Bridge
-
Creates a request from a Jakarta servlet HTTP request.
- fromServletRequest(HttpServletRequest, int) - Static method in class org.attribyte.api.http.impl.servlet.Bridge
-
Creates a request from a servlet HTTP request.
- fromString(String) - Static method in enum class org.attribyte.api.http.Request.Method
-
Gets a method from a string.
G
- GET - Enum constant in enum class org.attribyte.api.http.Request.Method
-
The HTTP
GETmethod. - getAttribute(String) - Method in class org.attribyte.api.http.Response
-
Gets an attribute.
- getAttribute(String, T) - Method in class org.attribyte.api.http.Response
-
Gets an attribute with a default value.
- getAuthenticateResponseHeader() - Method in class org.attribyte.api.http.AuthScheme
-
Gets the value for the
WWW-Authenticateheader. - getBody() - Method in class org.attribyte.api.http.BodyResponse
- getBody() - Method in class org.attribyte.api.http.Request
-
Gets the request body, if any.
- getBody() - Method in class org.attribyte.api.http.Response
-
Gets the response body as an immutable
ByteString. - getBody() - Method in class org.attribyte.api.http.StreamedResponse
- getBodySource() - Method in class org.attribyte.api.http.StreamedResponse
-
Gets a source for the body.
- getBooleanProperty(String, boolean) - Method in class org.attribyte.api.http.ClientOptions
-
Gets a boolean property.
- getCharset(String) - Method in class org.attribyte.api.http.Request
-
Gets the charset specified with the request
Content-Typeheader, if any. - getCharset(String) - Method in class org.attribyte.api.http.Response
-
Gets the charset specified for this response or the default charset if none specified.
- getCharset(String, String) - Static method in class org.attribyte.api.http.Header
-
Gets the charset from a content type header.
- getConnectionTimeoutMillis() - Method in class org.attribyte.api.http.ClientOptions.Builder
-
Gets the connection timeout in milliseconds.
- getContentType() - Method in class org.attribyte.api.http.Request
-
Gets the value of the
Content-Typeheader. - getContentType() - Method in class org.attribyte.api.http.Response
-
Gets the value of the
Content-Typeheader. - getCookieStore() - Method in class org.attribyte.api.http.ClientOptions.Builder
-
Gets the cookie store.
- getFollowRedirects() - Method in class org.attribyte.api.http.ClientOptions.Builder
-
Gets the follow redirects setting.
- getHeader(String) - Method in class org.attribyte.api.http.Request
-
Gets a header.
- getHeaders() - Method in class org.attribyte.api.http.Request
-
Gets all headers.
- getHeaders() - Method in class org.attribyte.api.http.Response
-
Gets all headers.
- getHeaderValue(String) - Method in class org.attribyte.api.http.Request
-
Gets the first header value.
- getHeaderValue(String) - Method in class org.attribyte.api.http.Response
-
Gets the first header value.
- getHeaderValueList(String) - Method in class org.attribyte.api.http.Request
-
Gets an immutable list of values for a header.
- getHeaderValueList(String) - Method in class org.attribyte.api.http.Response
-
Gets an immutable list of values for a header.
- getHeaderValues(String) - Method in class org.attribyte.api.http.Request
-
Gets all values for a header.
- getHeaderValues(String) - Method in class org.attribyte.api.http.Response
-
Gets all values for a header.
- getHostURL(String) - Static method in class org.attribyte.api.http.Request
-
Gets a URL for the host portion of a URI without decoding.
- getIntProperty(String, int) - Method in class org.attribyte.api.http.ClientOptions
-
Gets an integer property.
- getMaxConnectionsPerDestination() - Method in class org.attribyte.api.http.ClientOptions.Builder
-
Gets the maximum number of connections per destination.
- getMaxConnectionsTotal() - Method in class org.attribyte.api.http.ClientOptions.Builder
-
Gets the maximum total number of connections.
- getMethod() - Method in class org.attribyte.api.http.Request
-
Gets the HTTP method.
- getName() - Method in class org.attribyte.api.http.Header
-
Gets the name.
- getName() - Method in class org.attribyte.api.http.Parameter
-
Gets the name.
- getParameters() - Method in class org.attribyte.api.http.Request
-
Gets all parameters.
- getParameterValue(String) - Method in class org.attribyte.api.http.Request
-
Gets the first parameter value.
- getParameterValueList(String) - Method in class org.attribyte.api.http.Request
-
Gets an immutable list of values for a parameter.
- getParameterValues(String) - Method in class org.attribyte.api.http.Request
-
Gets all values for a parameter.
- getPathComponents() - Method in class org.attribyte.api.http.Request
-
Gets the components of the path (separated by '/').
- getPathComponents(String) - Static method in class org.attribyte.api.http.Request
-
Gets the components of the path (separated by '/').
- getProperty(String, String) - Method in class org.attribyte.api.http.ClientOptions
-
Gets a property.
- getProps() - Method in class org.attribyte.api.http.ClientOptions.Builder
-
Gets the extra properties.
- getProxyHost() - Method in class org.attribyte.api.http.ClientOptions.Builder
-
Gets the proxy host.
- getProxyPort() - Method in class org.attribyte.api.http.ClientOptions.Builder
-
Gets the proxy port.
- getQueryString() - Method in class org.attribyte.api.http.Request
-
Gets the decoded query string.
- getRawQueryString() - Method in class org.attribyte.api.http.Request
-
Gets the raw query string, without decoding.
- getRealm() - Method in class org.attribyte.api.http.AuthScheme
-
Gets the realm.
- getRemoteAddr() - Method in class org.attribyte.api.http.Request
-
Gets the IP address of the client that sent the request.
- getRequestBufferSize() - Method in class org.attribyte.api.http.ClientOptions.Builder
-
Gets the request buffer size.
- GetRequestBuilder - Class in org.attribyte.api.http
-
Builds immutable HTTP
GETrequests. - GetRequestBuilder(String) - Constructor for class org.attribyte.api.http.GetRequestBuilder
-
Creates a
GETrequest builder with URI parsed from a string. - GetRequestBuilder(String, boolean) - Constructor for class org.attribyte.api.http.GetRequestBuilder
-
Creates a
GETrequest builder with URI parsed from a string with parameter case-sensitivity specified. - GetRequestBuilder(String, Map<?, ?>) - Constructor for class org.attribyte.api.http.GetRequestBuilder
-
Creates a
GETrequest builder with URI parsed from a string and pre-parsed parameters. - GetRequestBuilder(URI) - Constructor for class org.attribyte.api.http.GetRequestBuilder
-
Creates a
GETrequest builder. - GetRequestBuilder(URI, boolean) - Constructor for class org.attribyte.api.http.GetRequestBuilder
-
Creates a
GETrequest builder with parameter case-sensitivity specified. - getRequestPath() - Method in class org.attribyte.api.http.Request
-
Gets the path component of the request URI.
- getRequestPath(String) - Static method in class org.attribyte.api.http.Request
-
Gets the path component of a URI.
- getRequestTimeoutMillis() - Method in class org.attribyte.api.http.ClientOptions.Builder
-
Gets the request timeout in milliseconds.
- getRequestURI(Request) - Static method in class org.attribyte.api.http.impl.jakarta.Bridge
-
Per the servlet API definition: Returns the part of the request URL from the protocol name up to the query string in the first line of the HTTP request.
- getRequestURI(Request) - Static method in class org.attribyte.api.http.impl.servlet.Bridge
-
Per the servlet API definition: Returns the part of the request URL from the protocol name up to the query string in the first line of the HTTP request.
- getRequestURL(Request) - Static method in class org.attribyte.api.http.impl.jakarta.Bridge
-
Per the servlet API definition: returns the original request, excluding the query string.
- getRequestURL(Request) - Static method in class org.attribyte.api.http.impl.servlet.Bridge
-
Per the servlet API definition: returns the original request, excluding the query string.
- getResponseBufferSize() - Method in class org.attribyte.api.http.ClientOptions.Builder
-
Gets the response buffer size.
- getScheme() - Method in class org.attribyte.api.http.AuthScheme
-
Gets the scheme.
- getServerName() - Method in class org.attribyte.api.http.Request
-
Gets the server name (as specified in the
Hostheader. - getSocketTimeoutMillis() - Method in class org.attribyte.api.http.ClientOptions.Builder
-
Gets the socket timeout in milliseconds.
- getStats() - Method in class org.attribyte.api.http.Response
-
Gets the stats, if available.
- getStatusCode() - Method in class org.attribyte.api.http.Response
-
Gets the HTTP response code.
- getTick() - Static method in class org.attribyte.api.http.impl.jetty.StatsListener
-
Gets the current tick in nanoseconds.
- getTimeProperty(String, int) - Method in class org.attribyte.api.http.ClientOptions
-
Gets a time (string) property as milliseconds.
- getTiming() - Method in class org.attribyte.api.http.Response
-
Deprecated.
- getTrustAllCertificates() - Method in class org.attribyte.api.http.ClientOptions.Builder
-
Are all (even invalid) certificates trusted?
- getUnauthorizedResponse(String) - Method in class org.attribyte.api.http.AuthScheme
-
Creates a challenge response.
- getURI() - Method in class org.attribyte.api.http.Request
-
Gets the URI.
- getUserAgent() - Method in class org.attribyte.api.http.ClientOptions.Builder
-
Gets the user agent.
- getUserId(Request) - Method in class org.attribyte.api.http.AuthScheme
-
Gets the user id from the request, if possible.
- getUserId(Request) - Method in class org.attribyte.api.http.impl.BasicAuthScheme
- getValue() - Method in class org.attribyte.api.http.Header
-
Gets the first value.
- getValue() - Method in class org.attribyte.api.http.Parameter
-
Gets the first value.
- getValueList() - Method in class org.attribyte.api.http.Header
-
Gets an immutable list of values.
- getValueList() - Method in class org.attribyte.api.http.Parameter
-
Gets an immutable list of values.
- getValues() - Method in class org.attribyte.api.http.Header
-
Gets all the values.
- getValues() - Method in class org.attribyte.api.http.Parameter
-
Gets all the values.
H
- hasCredentials(Request) - Method in class org.attribyte.api.http.AuthScheme
-
Determines if the request has any (invalid or valid) credentials for this scheme.
- hasCredentials(Request) - Method in class org.attribyte.api.http.impl.BasicAuthScheme
- hashCode() - Method in class org.attribyte.api.http.AuthScheme
- HEAD - Enum constant in enum class org.attribyte.api.http.Request.Method
-
The HTTP
HEADmethod. - Header - Class in org.attribyte.api.http
-
An immutable HTTP request or response header.
- Header(String, String) - Constructor for class org.attribyte.api.http.Header
-
Creates a single-valued header.
- Header(String, String[]) - Constructor for class org.attribyte.api.http.Header
-
Creates a multi-valued header from an array of values.
- Header(String, Collection<String>) - Constructor for class org.attribyte.api.http.Header
-
Creates a multi-valued header from a collection of values.
- headers - Variable in class org.attribyte.api.http.Request
-
An immutable map of headers.
- headers - Variable in class org.attribyte.api.http.RequestBuilder
- headers - Variable in class org.attribyte.api.http.Response
-
An immutable map of headers.
- HeadRequestBuilder - Class in org.attribyte.api.http
-
Builds immutable HTTP
HEADrequests. - HeadRequestBuilder(String) - Constructor for class org.attribyte.api.http.HeadRequestBuilder
-
Creates a
HEADrequest builder with URI parsed from a string. - HeadRequestBuilder(String, boolean) - Constructor for class org.attribyte.api.http.HeadRequestBuilder
-
Creates a
HEADrequest builder with URI parsed from a string with parameter case-sensitivity specified. - HeadRequestBuilder(String, Map<?, ?>) - Constructor for class org.attribyte.api.http.HeadRequestBuilder
-
Creates a
HEADrequest builder with URI parsed from a string and pre-parsed parameters. - HeadRequestBuilder(URI) - Constructor for class org.attribyte.api.http.HeadRequestBuilder
-
Creates a
HEADrequest builder. - HeadRequestBuilder(URI, boolean) - Constructor for class org.attribyte.api.http.HeadRequestBuilder
-
Creates a
HEADrequest builder with parameter case-sensitivity specified. - httpOnly - Variable in class org.attribyte.api.http.Cookie
-
Is this an http-only cookie?
I
- IMPLEMENTATION_DEFAULT - Static variable in class org.attribyte.api.http.ClientOptions
-
Indicates that implementation defaults should be used.
- init(String, Properties, Logger) - Method in interface org.attribyte.api.http.Client
-
Initializes the client.
- init(String, Properties, Logger) - Method in class org.attribyte.api.http.impl.jdk.JdkClient
- init(String, Properties, Logger) - Method in class org.attribyte.api.http.impl.jetty.JettyClient
- isAllowed(String, String) - Method in class org.attribyte.api.http.util.RobotsTxt
-
Determine if a user agent is allowed for the specified path.
- isAllowed(String, String, boolean) - Method in class org.attribyte.api.http.util.RobotsTxt
-
Determine if a user agent is allowed for the specified path.
- isAuthorized(AuthScheme, Request) - Method in interface org.attribyte.api.http.Authorizer
-
Determine if a request is authorized.
- isFormEncoded() - Method in class org.attribyte.api.http.Request
-
Determine if the request is encoded as a form
application/x-www-form-urlencoded - isOK(int) - Static method in class org.attribyte.api.http.Response.Code
-
Determines if a response code is "OK".
J
- JdkClient - Class in org.attribyte.api.http.impl.jdk
-
HTTP client implementation using the JDK
java.net.http.HttpClient. - JdkClient() - Constructor for class org.attribyte.api.http.impl.jdk.JdkClient
-
Creates an uninitialized client.
- JdkClient(ClientOptions) - Constructor for class org.attribyte.api.http.impl.jdk.JdkClient
-
Creates a client with specified options.
- JettyClient - Class in org.attribyte.api.http.impl.jetty
- JettyClient() - Constructor for class org.attribyte.api.http.impl.jetty.JettyClient
-
Creates an uninitialized client.
- JettyClient(ClientOptions) - Constructor for class org.attribyte.api.http.impl.jetty.JettyClient
-
Creates a client with specified options.
- jettyClientFromOptions(ClientOptions) - Static method in class org.attribyte.api.http.impl.jetty.JettyClient
-
Creates and initializes a new Jetty client from HTTP client options.
L
- Listener - Interface in org.attribyte.api.http.impl.jetty
-
Listens for both request and response events.
- ListenerChain - Class in org.attribyte.api.http.impl.jetty
-
A chain of listeners.
- ListenerChain(List<Request.Listener>, List<Response.Listener>) - Constructor for class org.attribyte.api.http.impl.jetty.ListenerChain
-
Creates a response listener chain.
M
- main(String[]) - Static method in class org.attribyte.api.http.test.PerfTest
- main(String[]) - Static method in class org.attribyte.api.http.test.SimpleTest
- maxAgeSeconds - Variable in class org.attribyte.api.http.Cookie
-
The maximum age in seconds.
- maxConnectionsPerDestination - Variable in class org.attribyte.api.http.ClientOptions
-
The maximum number of connections per destination (1024).
- maxConnectionsTotal - Variable in class org.attribyte.api.http.ClientOptions
-
The maximum number of connections for all destinations (4096).
- maxResponseBytes - Variable in class org.attribyte.api.http.RequestOptions
-
The maximum size of a response in bytes.
- method - Variable in class org.attribyte.api.http.Request
-
The request method.
N
- name - Variable in class org.attribyte.api.http.Cookie
-
The name.
- name - Variable in class org.attribyte.api.http.Header
-
The header name.
- name - Variable in class org.attribyte.api.http.Parameter
-
The parameter name.
- nameComparator - Static variable in class org.attribyte.api.http.Header
-
Compare headers by name.
- nameComparator - Static variable in class org.attribyte.api.http.Parameter
-
Compare parameters by name.
- NamedValues - Class in org.attribyte.api.http
-
Utilities for headers and parameters.
- NamedValues() - Constructor for class org.attribyte.api.http.NamedValues
- NO_CONTENT - Static variable in class org.attribyte.api.http.Response.Code
-
No content (204).
- NO_ROBOTS - Static variable in class org.attribyte.api.http.util.RobotsTxt
- NOT_FOUND - Static variable in class org.attribyte.api.http.Response.Code
-
Resource was not found (404).
O
- OK - Static variable in class org.attribyte.api.http.Response.Code
-
Successful (200).
- onBegin(Request) - Method in class org.attribyte.api.http.impl.jetty.DebugListener
- onBegin(Request) - Method in class org.attribyte.api.http.impl.jetty.ListenerChain
- onBegin(Request) - Method in class org.attribyte.api.http.impl.jetty.StatsListener
- onBegin(Response) - Method in class org.attribyte.api.http.impl.jetty.DebugListener
- onBegin(Response) - Method in class org.attribyte.api.http.impl.jetty.ListenerChain
- onBegin(Response) - Method in class org.attribyte.api.http.impl.jetty.StatsListener
- onCommit(Request) - Method in class org.attribyte.api.http.impl.jetty.DebugListener
- onCommit(Request) - Method in class org.attribyte.api.http.impl.jetty.ListenerChain
- onCommit(Request) - Method in class org.attribyte.api.http.impl.jetty.StatsListener
- onComplete(Result) - Method in class org.attribyte.api.http.impl.jetty.DebugListener
- onComplete(Result) - Method in class org.attribyte.api.http.impl.jetty.ListenerChain
- onComplete(Result) - Method in class org.attribyte.api.http.impl.jetty.StatsListener
- onContent(Request, ByteBuffer) - Method in class org.attribyte.api.http.impl.jetty.DebugListener
- onContent(Request, ByteBuffer) - Method in class org.attribyte.api.http.impl.jetty.ListenerChain
- onContent(Request, ByteBuffer) - Method in class org.attribyte.api.http.impl.jetty.StatsListener
- onContent(Response, ByteBuffer) - Method in class org.attribyte.api.http.impl.jetty.DebugListener
- onContent(Response, ByteBuffer) - Method in class org.attribyte.api.http.impl.jetty.ListenerChain
- onContent(Response, ByteBuffer) - Method in class org.attribyte.api.http.impl.jetty.StatsListener
- onFailure(Request, Throwable) - Method in class org.attribyte.api.http.impl.jetty.DebugListener
- onFailure(Request, Throwable) - Method in class org.attribyte.api.http.impl.jetty.ListenerChain
- onFailure(Request, Throwable) - Method in class org.attribyte.api.http.impl.jetty.StatsListener
- onFailure(Response, Throwable) - Method in class org.attribyte.api.http.impl.jetty.DebugListener
- onFailure(Response, Throwable) - Method in class org.attribyte.api.http.impl.jetty.ListenerChain
- onFailure(Response, Throwable) - Method in class org.attribyte.api.http.impl.jetty.StatsListener
- onHeader(Response, HttpField) - Method in class org.attribyte.api.http.impl.jetty.DebugListener
- onHeader(Response, HttpField) - Method in class org.attribyte.api.http.impl.jetty.ListenerChain
- onHeader(Response, HttpField) - Method in class org.attribyte.api.http.impl.jetty.StatsListener
- onHeaders(Request) - Method in class org.attribyte.api.http.impl.jetty.DebugListener
- onHeaders(Request) - Method in class org.attribyte.api.http.impl.jetty.ListenerChain
- onHeaders(Request) - Method in class org.attribyte.api.http.impl.jetty.StatsListener
- onHeaders(Response) - Method in class org.attribyte.api.http.impl.jetty.DebugListener
- onHeaders(Response) - Method in class org.attribyte.api.http.impl.jetty.ListenerChain
- onHeaders(Response) - Method in class org.attribyte.api.http.impl.jetty.StatsListener
- onQueued(Request) - Method in class org.attribyte.api.http.impl.jetty.DebugListener
- onQueued(Request) - Method in class org.attribyte.api.http.impl.jetty.ListenerChain
- onQueued(Request) - Method in class org.attribyte.api.http.impl.jetty.StatsListener
- onSuccess(Request) - Method in class org.attribyte.api.http.impl.jetty.DebugListener
- onSuccess(Request) - Method in class org.attribyte.api.http.impl.jetty.ListenerChain
- onSuccess(Request) - Method in class org.attribyte.api.http.impl.jetty.StatsListener
- onSuccess(Response) - Method in class org.attribyte.api.http.impl.jetty.DebugListener
- onSuccess(Response) - Method in class org.attribyte.api.http.impl.jetty.ListenerChain
- onSuccess(Response) - Method in class org.attribyte.api.http.impl.jetty.StatsListener
- OPTIONS - Enum constant in enum class org.attribyte.api.http.Request.Method
-
The HTTP
OPTIONSmethod. - OptionsRequestBuilder - Class in org.attribyte.api.http
-
Builds immutable HTTP
OPTIONSrequests. - OptionsRequestBuilder(String) - Constructor for class org.attribyte.api.http.OptionsRequestBuilder
-
Creates a
OPTIONSrequest builder with URI parsed from a string. - OptionsRequestBuilder(String, boolean) - Constructor for class org.attribyte.api.http.OptionsRequestBuilder
-
Creates a
OPTIONSrequest builder with URI parsed from a string with parameter case-sensitivity specified. - OptionsRequestBuilder(String, Map<?, ?>) - Constructor for class org.attribyte.api.http.OptionsRequestBuilder
-
Creates a
OPTIONSrequest builder with URI parsed from a string and pre-parsed parameters. - OptionsRequestBuilder(URI) - Constructor for class org.attribyte.api.http.OptionsRequestBuilder
-
Creates a
OPTIONSrequest builder. - OptionsRequestBuilder(URI, boolean) - Constructor for class org.attribyte.api.http.OptionsRequestBuilder
-
Creates a
OPTIONSrequest builder with parameter case-sensitivity specified. - org.attribyte.api.http - package org.attribyte.api.http
- org.attribyte.api.http.impl - package org.attribyte.api.http.impl
- org.attribyte.api.http.impl.jakarta - package org.attribyte.api.http.impl.jakarta
- org.attribyte.api.http.impl.jdk - package org.attribyte.api.http.impl.jdk
- org.attribyte.api.http.impl.jetty - package org.attribyte.api.http.impl.jetty
- org.attribyte.api.http.impl.servlet - package org.attribyte.api.http.impl.servlet
- org.attribyte.api.http.test - package org.attribyte.api.http.test
- org.attribyte.api.http.util - package org.attribyte.api.http.util
P
- Parameter - Class in org.attribyte.api.http
-
An immutable HTTP request (query string) parameter.
- Parameter(String, String) - Constructor for class org.attribyte.api.http.Parameter
-
Creates a parameter.
- Parameter(String, String[]) - Constructor for class org.attribyte.api.http.Parameter
-
Creates a multi-valued parameter.
- Parameter(String, Collection<String>) - Constructor for class org.attribyte.api.http.Parameter
-
Creates a multi-valued parameter from a collection of values.
- parameters - Variable in class org.attribyte.api.http.Request
-
An immutable map of parameters.
- parse(String, Client, String, Set<String>, Logger) - Static method in class org.attribyte.api.http.util.RobotsTxt
-
Creates a robots.txt from the standard location (
/robots.txt). - parseParameters(String) - Static method in class org.attribyte.api.http.Header
-
Parses ';' separated parameters in a header value.
- parseParameters(String) - Static method in class org.attribyte.api.http.Request
-
Parse parameters from a query string.
- parseParameters(String, boolean) - Static method in class org.attribyte.api.http.Request
-
Parse parameters from a query string.
- parseParametersPreserveNameCase(String) - Static method in class org.attribyte.api.http.Request
-
Parse parameters from a query string, preserving case in parameter names.
- PATCH - Enum constant in enum class org.attribyte.api.http.Request.Method
-
The HTTP
PATCHmethod. - PatchRequestBuilder - Class in org.attribyte.api.http
-
Builds immutable HTTP
PATCHrequests. - PatchRequestBuilder(String, byte[]) - Constructor for class org.attribyte.api.http.PatchRequestBuilder
-
Creates a
PATCHrequest builder with a parsed URI. - PatchRequestBuilder(String, ByteString) - Constructor for class org.attribyte.api.http.PatchRequestBuilder
-
Creates a
PATCHrequest builder with a parsed URI and the body specified as aByteString. - PatchRequestBuilder(URI, byte[]) - Constructor for class org.attribyte.api.http.PatchRequestBuilder
-
Creates a
PATCHrequest builder. - PatchRequestBuilder(URI, ByteString) - Constructor for class org.attribyte.api.http.PatchRequestBuilder
-
Creates a
PATCHrequest builder and the body specified as aByteString. - path - Variable in class org.attribyte.api.http.Cookie
-
The path.
- PerfTest - Class in org.attribyte.api.http.test
- PerfTest() - Constructor for class org.attribyte.api.http.test.PerfTest
- POST - Enum constant in enum class org.attribyte.api.http.Request.Method
-
The HTTP
POSTmethod. - PostRequestBuilder - Class in org.attribyte.api.http
-
Builds immutable HTTP
POSTrequests. - PostRequestBuilder(String, byte[]) - Constructor for class org.attribyte.api.http.PostRequestBuilder
-
Creates a
POSTrequest builder with a parsed URI. - PostRequestBuilder(String, ByteString) - Constructor for class org.attribyte.api.http.PostRequestBuilder
-
Creates a
POSTrequest builder with a parsed URI and the body specified as aByteString. - PostRequestBuilder(URI, byte[]) - Constructor for class org.attribyte.api.http.PostRequestBuilder
-
Creates a
POSTrequest builder. - PostRequestBuilder(URI, ByteString) - Constructor for class org.attribyte.api.http.PostRequestBuilder
-
Creates a
POSTrequest builder and the body specified as aByteString. - proxyHost - Variable in class org.attribyte.api.http.ClientOptions
-
A proxy server.
- proxyPort - Variable in class org.attribyte.api.http.ClientOptions
-
The proxy server port.
- PUT - Enum constant in enum class org.attribyte.api.http.Request.Method
-
The HTTP
PUTmethod. - putHeaders(Collection<Header>) - Method in class org.attribyte.api.http.ResponseBuilder
-
Adds a collection of headers.
- PutRequestBuilder - Class in org.attribyte.api.http
-
Builds immutable HTTP
PUTrequests. - PutRequestBuilder(String, byte[]) - Constructor for class org.attribyte.api.http.PutRequestBuilder
-
Creates a
PUTrequest builder with a parsed URI. - PutRequestBuilder(String, ByteString) - Constructor for class org.attribyte.api.http.PutRequestBuilder
-
Creates a
PUTrequest builder with a parsed URI and the body specified as aByteString. - PutRequestBuilder(URI, byte[]) - Constructor for class org.attribyte.api.http.PutRequestBuilder
-
Creates a
PUTrequest builder. - PutRequestBuilder(URI, ByteString) - Constructor for class org.attribyte.api.http.PutRequestBuilder
-
Creates a
PUTrequest builder and the body specified as aByteString.
R
- realm - Variable in class org.attribyte.api.http.AuthScheme
- REMOTE_ADDR - Static variable in class org.attribyte.api.http.Request
-
The name of an attribute that may hold the remote address.
- Request - Class in org.attribyte.api.http
-
An immutable HTTP request.
- Request.Method - Enum Class in org.attribyte.api.http
-
The HTTP methods.
- requestBodySize - Variable in class org.attribyte.api.http.Stats
-
The size of the request body.
- requestBufferSize - Variable in class org.attribyte.api.http.ClientOptions
-
The request buffer size (4096).
- RequestBuilder - Class in org.attribyte.api.http
-
Builds HTTP requests.
- RequestBuilder(String) - Constructor for class org.attribyte.api.http.RequestBuilder
-
Creates a builder with a parsed URI.
- RequestBuilder(URI) - Constructor for class org.attribyte.api.http.RequestBuilder
-
Creates a builder.
- RequestBuilderWithParameters - Class in org.attribyte.api.http
-
Builds HTTP requests that allow parameters.
- RequestBuilderWithParameters(String, boolean) - Constructor for class org.attribyte.api.http.RequestBuilderWithParameters
-
Creates a request builder with a parsed URI.
- RequestBuilderWithParameters(String, Map<?, ?>) - Constructor for class org.attribyte.api.http.RequestBuilderWithParameters
-
Creates a request builder with a parsed URI and a generic map of parameters (maybe...from a servlet request).
- RequestBuilderWithParameters(URI, boolean) - Constructor for class org.attribyte.api.http.RequestBuilderWithParameters
-
Creates a request builder with parameter case-sensitivity specified.
- requestChunkCount - Variable in class org.attribyte.api.http.Stats
-
The number of chunks in the request body.
- requestCookie(String, String) - Static method in class org.attribyte.api.http.Cookie
-
Creates a request cookie.
- requestHeaderCount - Variable in class org.attribyte.api.http.Stats
-
The number of request headers.
- requestHeaderSize - Variable in class org.attribyte.api.http.Stats
-
The size (in bytes) of the request headers.
- RequestOptions - Class in org.attribyte.api.http
-
Request-specific options.
- RequestOptions(boolean, int, int) - Constructor for class org.attribyte.api.http.RequestOptions
-
Creates request options.
- RequestOptions(boolean, int, int, boolean) - Constructor for class org.attribyte.api.http.RequestOptions
-
Creates request options.
- requestTimeoutMillis - Variable in class org.attribyte.api.http.ClientOptions
-
The maximum amount of time to wait for a response after sending a request (5s).
- Response - Class in org.attribyte.api.http
-
An immutable HTTP response.
- Response(int, Map<?, ?>) - Constructor for class org.attribyte.api.http.Response
-
Creates a response.
- Response(int, Map<?, ?>, Map<String, Object>) - Constructor for class org.attribyte.api.http.Response
-
Creates a response with attributes.
- Response(int, Map<?, ?>, Map<String, Object>, Stats) - Constructor for class org.attribyte.api.http.Response
-
Creates a response with attributes and stats.
- Response(int, Map<?, ?>, Map<String, Object>, Stats, Collection<Cookie>) - Constructor for class org.attribyte.api.http.Response
-
Creates a response with attributes, stats and cookies.
- Response.Code - Class in org.attribyte.api.http
-
Common HTTP response codes.
- responseBodySize - Variable in class org.attribyte.api.http.impl.jetty.StatsListener
-
The size of the response body.
- responseBodySize - Variable in class org.attribyte.api.http.Stats
-
The size of the response body.
- responseBufferSize - Variable in class org.attribyte.api.http.ClientOptions
-
The response buffer size (16384).
- ResponseBuilder - Class in org.attribyte.api.http
-
Builds immutable HTTP responses.
- ResponseBuilder() - Constructor for class org.attribyte.api.http.ResponseBuilder
-
Creates a response builder.
- ResponseBuilder(int) - Constructor for class org.attribyte.api.http.ResponseBuilder
-
Creates a response builder with a response code.
- ResponseBuilder(int, byte[]) - Constructor for class org.attribyte.api.http.ResponseBuilder
-
Creates a response builder with a response code and body as bytes.
- ResponseBuilder(int, ByteSource) - Constructor for class org.attribyte.api.http.ResponseBuilder
-
Creates a response builder with a response code and body as a
ByteSource. - ResponseBuilder(int, String) - Constructor for class org.attribyte.api.http.ResponseBuilder
-
Creates a response builder with a response code and body as a string.
- responseChunkCount - Variable in class org.attribyte.api.http.impl.jetty.StatsListener
-
The number of chunks in the response.
- responseChunkCount - Variable in class org.attribyte.api.http.Stats
-
The number of chunks in the response.
- responseContentStartedTick - Variable in class org.attribyte.api.http.impl.jetty.StatsListener
-
The tick in nanoseconds when the first chunk of content is received.
- responseHeaderCount - Variable in class org.attribyte.api.http.Stats
-
The number of response headers.
- responseHeaderSize - Variable in class org.attribyte.api.http.Stats
-
The size of the response headers.
- reverse() - Method in class org.attribyte.api.http.impl.jetty.ListenerChain
-
Reverse the order.
- RobotsTxt - Class in org.attribyte.api.http.util
-
A parsed
robots.txtfile. - RobotsTxt(Reader, Set<String>) - Constructor for class org.attribyte.api.http.util.RobotsTxt
-
Parse robots.txt from a character stream.
S
- scheme - Variable in class org.attribyte.api.http.AuthScheme
- secure - Variable in class org.attribyte.api.http.Cookie
-
Is this cookie sent only if connection is secure?
- send(Request) - Method in interface org.attribyte.api.http.Client
-
Sends a request with default options.
- send(Request) - Method in class org.attribyte.api.http.impl.jdk.JdkClient
- send(Request) - Method in class org.attribyte.api.http.impl.jetty.JettyClient
- send(Request, RequestOptions) - Method in interface org.attribyte.api.http.Client
-
Sends a request with specified options.
- send(Request, RequestOptions) - Method in class org.attribyte.api.http.impl.jdk.JdkClient
- send(Request, RequestOptions) - Method in class org.attribyte.api.http.impl.jetty.JettyClient
- sendServletResponse(Response, HttpServletResponse) - Static method in class org.attribyte.api.http.impl.jakarta.Bridge
-
Sends an Attribyte response using a Jakarta servlet response.
- sendServletResponse(Response, HttpServletResponse) - Static method in class org.attribyte.api.http.impl.servlet.Bridge
-
Sends an Attribyte response using a servlet response.
- SERVER_ERROR - Static variable in class org.attribyte.api.http.Response.Code
-
Server produced an error (500).
- SERVER_UNAVAILABLE - Static variable in class org.attribyte.api.http.Response.Code
-
Server is unavailable (503).
- setBody(byte[]) - Method in class org.attribyte.api.http.ResponseBuilder
-
Sets the response body bytes.
- setBody(ByteSource) - Method in class org.attribyte.api.http.ResponseBuilder
-
Sets a
ByteSourcefor the response body. - setBody(String) - Method in class org.attribyte.api.http.ResponseBuilder
-
Sets the response body as a UTF-8 string.
- setConnectionTimeoutMillis(int) - Method in class org.attribyte.api.http.ClientOptions.Builder
-
Sets the connection timeout in milliseconds.
- setCookies(Collection<Cookie>) - Method in class org.attribyte.api.http.ResponseBuilder
-
Sets cookies.
- setCookieStore(CookieStore) - Method in class org.attribyte.api.http.ClientOptions.Builder
-
Sets the cookie store.
- setFollowRedirects(boolean) - Method in class org.attribyte.api.http.ClientOptions.Builder
-
Sets if redirects are followed.
- setMaxConnectionsPerDestination(int) - Method in class org.attribyte.api.http.ClientOptions.Builder
-
Sets the maximum number of connections per destination.
- setMaxConnectionsTotal(int) - Method in class org.attribyte.api.http.ClientOptions.Builder
-
Sets the maximum total number of connections.
- setParameter(String, String[]) - Method in class org.attribyte.api.http.FormPostRequestBuilder
-
Adds a multi-valued parameter.
- setProps(Properties) - Method in class org.attribyte.api.http.ClientOptions.Builder
-
Sets the extra properties.
- setProxyHost(String) - Method in class org.attribyte.api.http.ClientOptions.Builder
-
Sets the proxy host.
- setProxyPort(int) - Method in class org.attribyte.api.http.ClientOptions.Builder
-
Sets the proxy port.
- setRequestBufferSize(int) - Method in class org.attribyte.api.http.ClientOptions.Builder
-
Sets the request buffer size.
- setRequestTimeoutMillis(int) - Method in class org.attribyte.api.http.ClientOptions.Builder
-
Sets the request timeout in milliseconds.
- setResponseBufferSize(int) - Method in class org.attribyte.api.http.ClientOptions.Builder
-
Sets the response buffer size.
- setSocketTimeoutMillis(int) - Method in class org.attribyte.api.http.ClientOptions.Builder
-
Sets the socket timeout in milliseconds.
- setStats(Stats) - Method in class org.attribyte.api.http.ResponseBuilder
-
Sets request/response stats.
- setStatusCode(int) - Method in class org.attribyte.api.http.ResponseBuilder
-
Sets the response code.
- setTrustAllCertificates(boolean) - Method in class org.attribyte.api.http.ClientOptions.Builder
-
Sets if all (even invalid) certificates are trusted.
- setUserAgent(String) - Method in class org.attribyte.api.http.ClientOptions.Builder
-
Sets the user agent.
- shutdown() - Method in interface org.attribyte.api.http.Client
-
Releases resources, interrupts threads, etc.
- shutdown() - Method in class org.attribyte.api.http.impl.jdk.JdkClient
- shutdown() - Method in class org.attribyte.api.http.impl.jetty.JettyClient
- SimpleTest - Class in org.attribyte.api.http.test
- SimpleTest() - Constructor for class org.attribyte.api.http.test.SimpleTest
- socketTimeoutMillis - Variable in class org.attribyte.api.http.ClientOptions
-
The maximum amount of time to wait for a (blocking) socket read to return (5s).
- stats - Variable in class org.attribyte.api.http.Response
-
The full stats, if any.
- stats() - Method in class org.attribyte.api.http.impl.jetty.StatsListener
-
Creates the accumulated stats.
- Stats - Class in org.attribyte.api.http
-
Extended request/response statistics including header and body size metrics.
- Stats(long, long, long, long, long, long, long, int, long, int, long, int, long, AtomicInteger, AtomicLong) - Constructor for class org.attribyte.api.http.Stats
-
Creates stats with all timing and size metrics.
- StatsListener - Class in org.attribyte.api.http.impl.jetty
- StatsListener() - Constructor for class org.attribyte.api.http.impl.jetty.StatsListener
- statusCode - Variable in class org.attribyte.api.http.Response
-
The status code.
- stream(Request, long, TimeUnit) - Method in class org.attribyte.api.http.impl.jetty.JettyClient
-
Sends a request and allows the response to be streamed when it is available.
- StreamedResponse - Class in org.attribyte.api.http
-
A response that allows the body to be streamed.
- StreamedResponse(int, Map<?, ?>, ByteSource, Map<String, Object>, Stats, Collection<Cookie>) - Constructor for class org.attribyte.api.http.StreamedResponse
-
Creates a response.
T
- test(Request, RequestOptions) - Method in class org.attribyte.api.http.impl.jetty.JettyClient
-
Run a test, hashing the content and accumulating the length, but not buffering.
- timeoutSeconds - Variable in class org.attribyte.api.http.RequestOptions
-
The maximum time to wait for a response in seconds.
- timeToCompleteResponse - Variable in class org.attribyte.api.http.Timing
- timeToCompleteResponse(TimeUnit) - Method in class org.attribyte.api.http.Timing
-
Gets the time to response complete.
- timeToFirstResponseContent - Variable in class org.attribyte.api.http.Timing
- timeToFirstResponseContent(TimeUnit) - Method in class org.attribyte.api.http.Timing
-
Gets the time to the first response content.
- timeToFirstResponseHeader - Variable in class org.attribyte.api.http.Timing
- timeToFirstResponseHeader(TimeUnit) - Method in class org.attribyte.api.http.Timing
-
Gets the time to the first response header.
- timeToLastResponseHeader - Variable in class org.attribyte.api.http.Timing
- timeToLastResponseHeader(TimeUnit) - Method in class org.attribyte.api.http.Timing
-
Gets the time to the last response header.
- timeToRequestComplete - Variable in class org.attribyte.api.http.Timing
- timeToRequestComplete(TimeUnit) - Method in class org.attribyte.api.http.Timing
-
Gets the time to request complete.
- timeToRequestStart - Variable in class org.attribyte.api.http.Timing
- timeToRequestStart(TimeUnit) - Method in class org.attribyte.api.http.Timing
-
Gets the time to request start.
- timeToResponseStatus - Variable in class org.attribyte.api.http.Timing
- timeToResponseStatus(TimeUnit) - Method in class org.attribyte.api.http.Timing
-
Gets the time to response status.
- timing() - Method in class org.attribyte.api.http.impl.jetty.StatsListener
-
Creates the accumulated timing information.
- Timing - Class in org.attribyte.api.http
-
Transaction timing.
- Timing(long, long, long, long, long, long, long) - Constructor for class org.attribyte.api.http.Timing
-
Creates timing.
- toString() - Method in class org.attribyte.api.http.ClientOptions
- toString() - Method in class org.attribyte.api.http.Cookie
- toString() - Method in class org.attribyte.api.http.Header
- toString() - Method in class org.attribyte.api.http.impl.jetty.StatsListener
- toString() - Method in class org.attribyte.api.http.Parameter
- toString() - Method in class org.attribyte.api.http.Request
- toString() - Method in class org.attribyte.api.http.RequestOptions
- toString() - Method in class org.attribyte.api.http.Response
- toString() - Method in class org.attribyte.api.http.Stats
- toString() - Method in class org.attribyte.api.http.Timing
- truncateOnLimit - Variable in class org.attribyte.api.http.RequestOptions
-
Should the response be truncated if
maxResponseBytesis reached (otherwise an exception is thrown)? - truncateOnLimit() - Method in class org.attribyte.api.http.RequestOptions
-
Create request options that truncate the response if the limit is reached.
- trustAllCertificates - Variable in class org.attribyte.api.http.ClientOptions
-
Should SSL certificates be trusted even if invalid (
false).
U
- UNAUTHORIZED - Static variable in class org.attribyte.api.http.Response.Code
-
Request requires authorization (401).
- uri - Variable in class org.attribyte.api.http.Request
-
The request URI.
- uri - Variable in class org.attribyte.api.http.RequestBuilder
- userAgent - Variable in class org.attribyte.api.http.ClientOptions
-
The user agent (
'AttribyteHttp/1.0').
V
- value - Variable in class org.attribyte.api.http.Cookie
-
The value.
- valueOf(String) - Static method in enum class org.attribyte.api.http.Request.Method
-
Returns the enum constant of this class with the specified name.
- values - Variable in class org.attribyte.api.http.Header
-
An immutable list of header values.
- values - Variable in class org.attribyte.api.http.Parameter
-
An immutable list of parameter values.
- values() - Static method in enum class org.attribyte.api.http.Request.Method
-
Returns an array containing the constants of this enum class, in the order they are declared.
All Classes and Interfaces|All Packages|Constant Field Values