- get(Object) - Method in class com.sun.net.httpserver.Headers
-
- getAddress() - Method in class com.sun.net.httpserver.HttpServer
-
returns the address this server is listening on
- getAttribute(String) - Method in class com.sun.net.httpserver.HttpExchange
-
Filter modules may store arbitrary objects with HttpExchange
instances as an out-of-band communication mechanism.
- getAttributes() - Method in class com.sun.net.httpserver.HttpContext
-
returns a mutable Map, which can be used to pass
configuration and other data to Filter modules
and to the context's exchange handler.
- getAuthenticator() - Method in class com.sun.net.httpserver.HttpContext
-
Returns the currently set Authenticator for this context
if one exists.
- getCipherSuites() - Method in class com.sun.net.httpserver.HttpsParameters
-
Returns a copy of the array of ciphersuites or null if none
have been set.
- getClientAddress() - Method in class com.sun.net.httpserver.HttpsParameters
-
Returns the address of the remote client initiating the
connection.
- getExecutor() - Method in class com.sun.net.httpserver.HttpServer
-
- getFilters() - Method in class com.sun.net.httpserver.HttpContext
-
returns this context's list of Filters.
- getFirst(String) - Method in class com.sun.net.httpserver.Headers
-
returns the first value from the List of String values
for the given key (if at least one exists).
- getHandler() - Method in class com.sun.net.httpserver.HttpContext
-
returns the handler for this context
- getHttpContext() - Method in class com.sun.net.httpserver.HttpExchange
-
Get the HttpContext for this exchange
- getHttpsConfigurator() - Method in class com.sun.net.httpserver.HttpsParameters
-
Returns the HttpsConfigurator for this HttpsParameters.
- getHttpsConfigurator() - Method in class com.sun.net.httpserver.HttpsServer
-
- getLocalAddress() - Method in class com.sun.net.httpserver.HttpExchange
-
Returns the local address on which the request was received
- getName() - Method in class com.sun.net.httpserver.HttpPrincipal
-
returns the contents of this principal in the form
realm:username
- getNeedClientAuth() - Method in class com.sun.net.httpserver.HttpsParameters
-
Returns whether client authentication should be required.
- getPath() - Method in class com.sun.net.httpserver.HttpContext
-
returns the path this context was created with
- getPrincipal() - Method in class com.sun.net.httpserver.Authenticator.Success
-
returns the authenticated user Principal
- getPrincipal() - Method in class com.sun.net.httpserver.HttpExchange
-
If an authenticator is set on the HttpContext that owns this exchange,
then this method will return the
HttpPrincipal
that represents
the authenticated user for this HttpExchange.
- getProtocol() - Method in class com.sun.net.httpserver.HttpExchange
-
Returns the protocol string from the request in the form
protocol/majorVersion.minorVersion.
- getProtocols() - Method in class com.sun.net.httpserver.HttpsParameters
-
Returns a copy of the array of protocols or null if none
have been set.
- getRealm() - Method in class com.sun.net.httpserver.BasicAuthenticator
-
returns the realm this BasicAuthenticator was created with
- getRealm() - Method in class com.sun.net.httpserver.HttpPrincipal
-
returns the realm this object was created with.
- getRemoteAddress() - Method in class com.sun.net.httpserver.HttpExchange
-
Returns the address of the remote entity invoking this request
- getRequestBody() - Method in class com.sun.net.httpserver.HttpExchange
-
returns a stream from which the request body can be read.
- getRequestHeaders() - Method in class com.sun.net.httpserver.HttpExchange
-
Returns an immutable Map containing the HTTP headers that were
included with this request.
- getRequestMethod() - Method in class com.sun.net.httpserver.HttpExchange
-
Get the request method
- getRequestURI() - Method in class com.sun.net.httpserver.HttpExchange
-
Get the request URI
- getResponseBody() - Method in class com.sun.net.httpserver.HttpExchange
-
returns a stream to which the response body must be
written.
- getResponseCode() - Method in class com.sun.net.httpserver.Authenticator.Failure
-
returns the response code to send to the client
- getResponseCode() - Method in class com.sun.net.httpserver.Authenticator.Retry
-
returns the response code to send to the client
- getResponseCode() - Method in class com.sun.net.httpserver.HttpExchange
-
Returns the response code, if it has already been set
- getResponseHeaders() - Method in class com.sun.net.httpserver.HttpExchange
-
Returns a mutable Map into which the HTTP response headers can be stored
and which will be transmitted as part of this response.
- getServer() - Method in class com.sun.net.httpserver.HttpContext
-
returns the server this context was created with
- getSSLContext() - Method in class com.sun.net.httpserver.HttpsConfigurator
-
Returns the SSLContext for this HttpsConfigurator.
- getSSLSession() - Method in class com.sun.net.httpserver.HttpsExchange
-
Get the SSLSession for this exchange.
- getUsername() - Method in class com.sun.net.httpserver.HttpPrincipal
-
returns the username this object was created with.
- getWantClientAuth() - Method in class com.sun.net.httpserver.HttpsParameters
-
Returns whether client authentication should be requested.
- handle(HttpExchange) - Method in interface com.sun.net.httpserver.HttpHandler
-
Handle the given request and generate an appropriate response.
- hashCode() - Method in class com.sun.net.httpserver.Headers
-
- hashCode() - Method in class com.sun.net.httpserver.HttpPrincipal
-
returns a hashcode for this HttpPrincipal.
- Headers - Class in com.sun.net.httpserver
-
HTTP request and response headers are represented by this class which implements
the interface
Map
<
String
,
List
<
String
>>.
- Headers() - Constructor for class com.sun.net.httpserver.Headers
-
- HttpContext - Class in com.sun.net.httpserver
-
HttpContext represents a mapping between the root URI path of an application
to a
HttpHandler
which is invoked to handle requests destined
for that path on the associated HttpServer or HttpsServer.
- HttpContext() - Constructor for class com.sun.net.httpserver.HttpContext
-
- HttpExchange - Class in com.sun.net.httpserver
-
This class encapsulates a HTTP request received and a
response to be generated in one exchange.
- HttpExchange() - Constructor for class com.sun.net.httpserver.HttpExchange
-
- HttpHandler - Interface in com.sun.net.httpserver
-
A handler which is invoked to process HTTP exchanges.
- HttpPrincipal - Class in com.sun.net.httpserver
-
Represents a user authenticated by HTTP Basic or Digest
authentication.
- HttpPrincipal(String, String) - Constructor for class com.sun.net.httpserver.HttpPrincipal
-
creates a HttpPrincipal from the given username and realm
- HttpsConfigurator - Class in com.sun.net.httpserver
-
This class is used to configure the https parameters for each incoming
https connection on a HttpsServer.
- HttpsConfigurator(SSLContext) - Constructor for class com.sun.net.httpserver.HttpsConfigurator
-
Creates an Https configuration, with the given SSLContext.
- HttpServer - Class in com.sun.net.httpserver
-
This class implements a simple HTTP server.
- HttpServer() - Constructor for class com.sun.net.httpserver.HttpServer
-
- HttpServerProvider - Class in com.sun.net.httpserver.spi
-
Service provider class for HttpServer.
- HttpServerProvider() - Constructor for class com.sun.net.httpserver.spi.HttpServerProvider
-
Initializes a new instance of this class.
- HttpsExchange - Class in com.sun.net.httpserver
-
This class encapsulates a HTTPS request received and a
response to be generated in one exchange and defines
the extensions to HttpExchange that are specific to the HTTPS protocol.
- HttpsExchange() - Constructor for class com.sun.net.httpserver.HttpsExchange
-
- HttpsParameters - Class in com.sun.net.httpserver
-
Represents the set of parameters for each https
connection negotiated with clients.
- HttpsParameters() - Constructor for class com.sun.net.httpserver.HttpsParameters
-
- HttpsServer - Class in com.sun.net.httpserver
-
This class is an extension of
HttpServer
which provides
support for HTTPS.
- HttpsServer() - Constructor for class com.sun.net.httpserver.HttpsServer
-