- DataConnectionProxy - Class in de.unkrig.commons.net.ftp
-
A proxy for the FTP data connection.
- DataConnectionProxy() - Constructor for class de.unkrig.commons.net.ftp.DataConnectionProxy
-
- de.unkrig.commons.net - package de.unkrig.commons.net
-
This package contains classes and interfaces that implement generic Java™ networking capabilities,
specifically a TCP server framework.
- de.unkrig.commons.net.authenticator - package de.unkrig.commons.net.authenticator
-
- de.unkrig.commons.net.ftp - package de.unkrig.commons.net.ftp
-
This package contains classes and interfaces that implement the FTP protocol, both the server and the client side.
- de.unkrig.commons.net.ftp.ftplett - package de.unkrig.commons.net.ftp.ftplett
-
This package contains functionality around the
Ftplett
interface.
- de.unkrig.commons.net.http - package de.unkrig.commons.net.http
-
This package contains classes and interfaces that implement the HTTP protocol, both the server and the client side.
- de.unkrig.commons.net.http.io - package de.unkrig.commons.net.http.io
-
java.io
-related classes that adhere closely to the HTTP protocol.
- de.unkrig.commons.net.http.servlett - package de.unkrig.commons.net.http.servlett
-
This package contains the
Servlett
interface and some sample
implementations.
- de.unkrig.commons.net.security - package de.unkrig.commons.net.security
-
This package contains classes and interfaces that implement generic Java™ networking capabilities,
specifically a TCP server framework.
- de.unkrig.commons.net.stream - package de.unkrig.commons.net.stream
-
java.io
streams for transferring bytes to and from a remote host.
- de.unkrig.commons.net.tool.ftpmon - package de.unkrig.commons.net.tool.ftpmon
-
The "ftpmon" command line utility.
- de.unkrig.commons.net.tool.ftpserver - package de.unkrig.commons.net.tool.ftpserver
-
A simple FTP server.
- de.unkrig.commons.net.tool.httpd - package de.unkrig.commons.net.tool.httpd
-
A (very) simple HTTP server.
- de.unkrig.commons.net.tool.httpproxy - package de.unkrig.commons.net.tool.httpproxy
-
An HTTP server that accepts connections from clients and forwards them to remote servers.
- de.unkrig.commons.net.tool.nullserver - package de.unkrig.commons.net.tool.nullserver
-
A server that accepts connections from clients and logs the data it receives from these connections.
- de.unkrig.commons.net.tool.tcpmon - package de.unkrig.commons.net.tool.tcpmon
-
A server that accepts connections from clients, creates another connection to a remote server for each accepted
connection, and forwards all data from the client to the server and back.
- de.unkrig.commons.net.tool.telnet - package de.unkrig.commons.net.tool.telnet
-
Creates a TCP connection to a server and forwards STDIN/STDOUT to that connection.
- DEFAULT_DIALOG_LABEL - Static variable in class de.unkrig.commons.net.authenticator.CustomAuthenticator
-
- delete(String) - Method in class de.unkrig.commons.net.ftp.ftplett.FileFtplett
-
- delete(String) - Method in interface de.unkrig.commons.net.ftp.ftplett.Ftplett
-
- destroy() - Method in class de.unkrig.commons.net.authenticator.CustomAuthenticator.CredentialsSpec
-
- disableSslCertificateValidation() - Static method in class de.unkrig.commons.net.security.HttpsUrlConnections
-
Disables validation of client certificates, server certificates, certificate issuers and hostnames for
HttpsURLConnection
s.
- dispose() - Method in class de.unkrig.commons.net.ftp.FtpClient
-
Releases all resources associated with the connection to the FTP server, specifically an open data
connection.
- dispose() - Method in interface de.unkrig.commons.net.http.HttpMessage.Body
-
Releases any resources associated with this object.
- handleConnection(InputStream, OutputStream, InetSocketAddress, InetSocketAddress, Stoppable) - Method in class de.unkrig.commons.net.http.HttpClientConnectionHandler
-
- handleConnection(ReadableByteChannel, WritableByteChannel, InetSocketAddress, InetSocketAddress, Multiplexer, Stoppable) - Method in class de.unkrig.commons.net.http.HttpClientConnectionHandler
-
- handleConnection(ReadableByteChannel, WritableByteChannel, InetSocketAddress, InetSocketAddress, Multiplexer, Stoppable) - Method in interface de.unkrig.commons.net.NioTcpServer.ConnectionHandler
-
A connection was accepted; use the
multiplexer to wait until
in,
out or some
other
SelectableChannel
becomes readable or writable.
- handleConnection(InputStream, OutputStream, InputStream, OutputStream, InetSocketAddress, InetSocketAddress, InetSocketAddress, InetSocketAddress, Stoppable) - Method in interface de.unkrig.commons.net.ReverseProxy.ProxyConnectionHandler
-
This method is invoked when the
ReverseProxy
has accepted a connection from a client and created
the connection to the remote server.
- handleConnection(InputStream, OutputStream, InetSocketAddress, InetSocketAddress, Stoppable) - Method in interface de.unkrig.commons.net.TcpServer.ConnectionHandler
-
The input stream is readable; consume and process one request from it.
- handleRequest(HttpRequest, ConsumerWhichThrows<HttpResponse, IOException>) - Method in class de.unkrig.commons.net.http.servlett.AbstractServlett
-
- handleRequest(HttpRequest, ConsumerWhichThrows<HttpResponse, IOException>) - Method in class de.unkrig.commons.net.http.servlett.HttpAuthenticationServlett
-
- handleRequest(HttpRequest, ConsumerWhichThrows<HttpResponse, IOException>) - Method in interface de.unkrig.commons.net.http.servlett.Servlett
-
Processes one HTTP request.
- hasBody() - Method in enum de.unkrig.commons.net.http.HttpRequest.Method
-
- hasBody() - Method in enum de.unkrig.commons.net.http.HttpResponse.Status
-
- hashCode() - Method in class de.unkrig.commons.net.authenticator.CustomAuthenticator.CredentialsSpec
-
- head(HttpRequest, ConsumerWhichThrows<HttpResponse, IOException>) - Method in class de.unkrig.commons.net.http.servlett.AbstractServlett
-
Handles one HTTP HEAD request.
- head(HttpRequest, ConsumerWhichThrows<HttpResponse, IOException>) - Method in class de.unkrig.commons.net.http.servlett.FileServlett
-
- HTTP_DEFAULT_CHARSET - Static variable in class de.unkrig.commons.net.UrlConnections
-
The charset that applies if the HTTP "Content-Type:" header is missing or has no "charset" parameter.
- HttpAuthenticationServlett<EX extends Exception> - Class in de.unkrig.commons.net.http.servlett
-
A
Servlett
that processes the AUTHENTICATION information in the HTTp request, and passes control to the
next servlett iff authentication is successfully completed.
- HttpAuthenticationServlett(String, HttpAuthenticationServlett.UserNamePasswordPredicate<EX>) - Constructor for class de.unkrig.commons.net.http.servlett.HttpAuthenticationServlett
-
- HttpAuthenticationServlett.UserNamePasswordPredicate<EX extends Throwable> - Interface in de.unkrig.commons.net.http.servlett
-
- HttpClient - Class in de.unkrig.commons.net.http
-
Implementation of an HTTP client.
- HttpClient(String, int) - Constructor for class de.unkrig.commons.net.http.HttpClient
-
- HttpClient(InetAddress, int) - Constructor for class de.unkrig.commons.net.http.HttpClient
-
Connects to the given address and port.
- HttpClientConnectionHandler - Class in de.unkrig.commons.net.http
-
A container for
Servlett
s that handle requests that are received from a client connection.
- HttpClientConnectionHandler() - Constructor for class de.unkrig.commons.net.http.HttpClientConnectionHandler
-
- HttpClientConnectionHandler(String, String) - Constructor for class de.unkrig.commons.net.http.HttpClientConnectionHandler
-
- HttpClientConnectionHandler(Servlett) - Constructor for class de.unkrig.commons.net.http.HttpClientConnectionHandler
-
- HttpClientConnectionHandler(Servlett, String, String) - Constructor for class de.unkrig.commons.net.http.HttpClientConnectionHandler
-
- HttpClientConnectionHandler(Iterable<Servlett>) - Constructor for class de.unkrig.commons.net.http.HttpClientConnectionHandler
-
- HttpClientConnectionHandler(Iterable<Servlett>, String, String) - Constructor for class de.unkrig.commons.net.http.HttpClientConnectionHandler
-
- Httpd - Class in de.unkrig.commons.net.tool.httpd
-
A VERY simple HTTP server that serves contents from a "document root" directory.
- Httpd(InetSocketAddress, String) - Constructor for class de.unkrig.commons.net.tool.httpd.Httpd
-
Accepts connections on the endpoint; responds each received request with the contents of the file
designated by the documentRootDirectoryNamePattern/path, where the placeholder
"{path}
" is substituted with the "path" component of the requested URI.
- Httpd(InetSocketAddress, SSLContext, String) - Constructor for class de.unkrig.commons.net.tool.httpd.Httpd
-
Accepts secure (HTTPS) connections on the endpoint; responds each received request with the contents
of the file designated by the documentRootDirectoryNamePattern/path, where the placeholder
"{path}
" is substituted with the "path" component of the requested URI.
- HttpMessage - Class in de.unkrig.commons.net.http
-
Representation of an HTTP request or response.
- HttpMessage(boolean) - Constructor for class de.unkrig.commons.net.http.HttpMessage
-
Constructor for outgoing messages.
- HttpMessage(InputStream, boolean, HttpMessage.HasBody) - Constructor for class de.unkrig.commons.net.http.HttpMessage
-
Constructor for incoming messages.
- HttpMessage(InputStream, boolean, HttpMessage.HasBody, String) - Constructor for class de.unkrig.commons.net.http.HttpMessage
-
Constructor for incoming messages.
- HttpMessage.Body - Interface in de.unkrig.commons.net.http
-
- HttpMessage.HasBody - Enum in de.unkrig.commons.net.http
-
- HttpProxy - Class in de.unkrig.commons.net.http
-
Implementation of a simple HTTP proxy.
- HttpProxy(InetSocketAddress, InetSocketAddress) - Constructor for class de.unkrig.commons.net.http.HttpProxy
-
- HttpProxy(InetSocketAddress, String, int) - Constructor for class de.unkrig.commons.net.http.HttpProxy
-
- HttpProxy(InetSocketAddress, InetSocketAddress, TransformerWhichThrows<? super HttpRequest, HttpRequest, IOException>, TransformerWhichThrows<? super HttpResponse, HttpResponse, IOException>) - Constructor for class de.unkrig.commons.net.http.HttpProxy
-
- HttpProxy(InetSocketAddress, String, int, TransformerWhichThrows<? super HttpRequest, HttpRequest, IOException>, TransformerWhichThrows<? super HttpResponse, HttpResponse, IOException>) - Constructor for class de.unkrig.commons.net.http.HttpProxy
-
- HttpRequest - Class in de.unkrig.commons.net.http
-
Representation of an HTTP request.
- HttpRequest(HttpRequest.Method, URI, String, InputStream) - Constructor for class de.unkrig.commons.net.http.HttpRequest
-
- HttpRequest(HttpRequest.Method, URI, String, InputStream, String) - Constructor for class de.unkrig.commons.net.http.HttpRequest
-
- HttpRequest(HttpRequest.Method, URI, String) - Constructor for class de.unkrig.commons.net.http.HttpRequest
-
- HttpRequest.Method - Enum in de.unkrig.commons.net.http
-
Representation of the various HTTP methods.
- HttpResponse - Class in de.unkrig.commons.net.http
-
Representation of one HTTP response.
- HttpResponse(InputStream) - Constructor for class de.unkrig.commons.net.http.HttpResponse
-
Constructor for outgoing responses.
- HttpResponse(HttpResponse.Status, String) - Constructor for class de.unkrig.commons.net.http.HttpResponse
-
Constructor for outgoing responses.
- HttpResponse(HttpResponse.Status, InputStream) - Constructor for class de.unkrig.commons.net.http.HttpResponse
-
Constructor for outgoing responses.
- HttpResponse(HttpResponse.Status, File) - Constructor for class de.unkrig.commons.net.http.HttpResponse
-
Constructor for outgoing responses.
- HttpResponse(HttpResponse.Status, HttpMessage.Body) - Constructor for class de.unkrig.commons.net.http.HttpResponse
-
Constructor for outgoing responses.
- HttpResponse.Status - Enum in de.unkrig.commons.net.http
-
Representation of the various HTTP response statuses.
- HttpServer - Class in de.unkrig.commons.net.http
-
- HttpServer(InetSocketAddress, HttpClientConnectionHandler) - Constructor for class de.unkrig.commons.net.http.HttpServer
-
Deprecated.
This
HttpServer
will accept connections on the
endpoint and will handle each with the
httpClientConnectionHandler.
- HttpServer(InetSocketAddress, SSLContext, HttpClientConnectionHandler) - Constructor for class de.unkrig.commons.net.http.HttpServer
-
Deprecated.
This
HttpServer
will accept secure (HTTPS) connections on the
endpoint and will handle each
with the
httpClientConnectionHandler.
- HttpsUrlConnections - Class in de.unkrig.commons.net.security
-
- selectServerAlias(X509KeyManager, String) - Static method in class de.unkrig.commons.net.X509Util
-
- Servlett - Interface in de.unkrig.commons.net.http.servlett
-
An entity that handles HTTP requests, similar to an JEE servlet.
- setAttemptUnstreaming(boolean) - Method in class de.unkrig.commons.net.http.HttpMessage
-
- setBody(HttpMessage.Body) - Method in class de.unkrig.commons.net.http.HttpMessage
-
Disposes the current body of this message and adopts the given
HttpMessage.Body
object as the new body.
- setDataConnectionAcceptTimeout(int) - Method in class de.unkrig.commons.net.ftp.FtpClient
-
- setDeny(boolean) - Method in class de.unkrig.commons.net.authenticator.CustomAuthenticator.CredentialsSpec
-
- setDialogLabel(String) - Method in class de.unkrig.commons.net.authenticator.CustomAuthenticator
-
The text of the label in the authentication dialog, in
MessageFormat
format.
- setHeader(String, String) - Method in class de.unkrig.commons.net.http.HttpMessage
-
Changes the value of the first header with the given name, or adds a new header.
- setHeader(String, int) - Method in class de.unkrig.commons.net.http.HttpMessage
-
Changes the value of the first header with the given name.
- setHeader(String, long) - Method in class de.unkrig.commons.net.http.HttpMessage
-
Changes the value of the first header with the given name.
- setHeader(String, Date) - Method in class de.unkrig.commons.net.http.HttpMessage
-
Changes the value of the first header with the given name.
- setHttpVersion(String) - Method in class de.unkrig.commons.net.http.HttpRequest
-
Changes the HTTP version of this request.
- setLocalPortRange(int, int) - Static method in class de.unkrig.commons.net.ftp.DataConnectionProxy
-
Defines the port that will be used for the server socket for all data connection proxies.
- setMethod(HttpRequest.Method) - Method in class de.unkrig.commons.net.http.HttpRequest
-
Changes the HTTP method of this request.
- setName(String) - Method in class de.unkrig.commons.net.http.MessageHeader
-
Changes the header's name.
- setParameter(String, String) - Method in class de.unkrig.commons.net.http.HttpRequest
-
Removes all parameters with the given name and adds another parameter.
- setParameter(String, String[]) - Method in class de.unkrig.commons.net.http.HttpRequest
-
Removes all parameters with the given name and adds another multi-value parameter.
- setParameter(String, String) - Method in class de.unkrig.commons.net.http.ParametrizedHeaderValue
-
Adds the given parameter, or changes the value of an existing parameter with that name.
- setParameterList(Iterable<Map.Entry<String, String>>) - Method in class de.unkrig.commons.net.http.HttpRequest
-
Changes this HTTP request's parameters.
- setPassword(char[]) - Method in class de.unkrig.commons.net.authenticator.CustomAuthenticator.CredentialsSpec
-
The password to use iff this <credentials>
element matches.
- setRequestingHost(Pattern) - Method in class de.unkrig.commons.net.authenticator.CustomAuthenticator.CredentialsSpec
-
The pattern to match against the hostname of the site or proxy.
- setRequestingPort(Pattern) - Method in class de.unkrig.commons.net.authenticator.CustomAuthenticator.CredentialsSpec
-
The pattern to match against "the port number for the requested connection".
- setRequestingPrompt(Pattern) - Method in class de.unkrig.commons.net.authenticator.CustomAuthenticator.CredentialsSpec
-
The pattern to match against "the prompt string given by the requestor (the "realm" for
HTTP authentication)".
- setRequestingProtocol(Pattern) - Method in class de.unkrig.commons.net.authenticator.CustomAuthenticator.CredentialsSpec
-
The pattern to match against "the protocol that's requesting the connection".
- setRequestingScheme(Pattern) - Method in class de.unkrig.commons.net.authenticator.CustomAuthenticator.CredentialsSpec
-
The pattern to match against "the scheme of the requestor".
- setRequestingSite(Pattern) - Method in class de.unkrig.commons.net.authenticator.CustomAuthenticator.CredentialsSpec
-
The pattern to match against the
InetAddress
of the site.
- setRequestingUrl(Pattern) - Method in class de.unkrig.commons.net.authenticator.CustomAuthenticator.CredentialsSpec
-
The pattern to match against "the URL that resulted in this request for authentication".
- setRequestorType(Pattern) - Method in class de.unkrig.commons.net.authenticator.CustomAuthenticator.CredentialsSpec
-
Whether the requestor is a Proxy or a Server.
- setServlett(Servlett) - Method in class de.unkrig.commons.net.http.HttpClientConnectionHandler
-
Clears the set of currently registerd
Servlett
s and registers the given
servlett.
- setServletts(Iterable<Servlett>) - Method in class de.unkrig.commons.net.http.HttpClientConnectionHandler
-
Clears the set of currently registerd
Servlett
s and registers the given
servletts.
- setUri(URI) - Method in class de.unkrig.commons.net.http.HttpRequest
-
Changes the URI of this HTTP request.
- setUserName(String) - Method in class de.unkrig.commons.net.authenticator.CustomAuthenticator.CredentialsSpec
-
The user name to use iff this <credentials>
element matches.
- setValue(String) - Method in class de.unkrig.commons.net.http.MessageHeader
-
Changes the header's value.
- SimpleServlett - Class in de.unkrig.commons.net.http.servlett
-
A very simple servlett that answers all requests with a preconfigured response.
- SimpleServlett(HttpResponse.Status, String, String) - Constructor for class de.unkrig.commons.net.http.servlett.SimpleServlett
-
- skip(long) - Method in class de.unkrig.commons.net.http.io.ChunkedInputStream
-
- start(InetAddress, InetSocketAddress) - Method in class de.unkrig.commons.net.ftp.DataConnectionProxy
-
Finds a free port on the given local interface and creates a server socket.
- start(int) - Method in class de.unkrig.commons.net.http.NioHttpServer
-
- start(int) - Method in class de.unkrig.commons.net.NioTcpServer
-
Starts this server.
- stop() - Method in class de.unkrig.commons.net.ftp.FtpServer
-
- stop() - Method in class de.unkrig.commons.net.http.HttpClientConnectionHandler
-
- stop() - Method in class de.unkrig.commons.net.http.HttpProxy
-
- stop() - Method in class de.unkrig.commons.net.http.HttpServer
-
Deprecated.
- stop() - Method in class de.unkrig.commons.net.http.NioHttpServer
-
- stop() - Method in class de.unkrig.commons.net.NioTcpServer
-
- stop() - Method in class de.unkrig.commons.net.ReverseProxy
-
- stop() - Method in class de.unkrig.commons.net.TcpServer
-
- stop() - Method in class de.unkrig.commons.net.tool.httpd.Httpd
-
Will stop the accepting connections from the server socket, close the server socket, and cause
Httpd.run()
to
return as quickly as possible.
- store(String) - Method in class de.unkrig.commons.net.ftp.ftplett.FileFtplett
-
- store(String) - Method in interface de.unkrig.commons.net.ftp.ftplett.Ftplett
-
- string(Charset) - Method in interface de.unkrig.commons.net.http.HttpMessage.Body
-
- value - Variable in class de.unkrig.commons.net.http.AuthenticateHeaderParser.AuthParam
-
- valueOf(String) - Static method in enum de.unkrig.commons.net.authenticator.CustomAuthenticator.CacheMode
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum de.unkrig.commons.net.authenticator.CustomAuthenticator.StoreMode
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum de.unkrig.commons.net.http.HttpMessage.HasBody
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum de.unkrig.commons.net.http.HttpRequest.Method
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum de.unkrig.commons.net.http.HttpResponse.Status
-
Returns the enum constant of this type with the specified name.
- values() - Static method in enum de.unkrig.commons.net.authenticator.CustomAuthenticator.CacheMode
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- values() - Static method in enum de.unkrig.commons.net.authenticator.CustomAuthenticator.StoreMode
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- values() - Static method in enum de.unkrig.commons.net.http.HttpMessage.HasBody
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- values() - Static method in enum de.unkrig.commons.net.http.HttpRequest.Method
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- values() - Static method in enum de.unkrig.commons.net.http.HttpResponse.Status
-
Returns an array containing the constants of this enum type, in
the order they are declared.