Index

A B C D E F G H J L N O P Q R S T U 
Alle Klassen und Schnittstellen|Alle Packages|Konstantenfeldwerte|Serialisierte Form

A

addTo(Headers) - Methode in Klasse de.srsoftware.tools.Cookie
add this cookie instance to a Headers object
addTo(Headers) - Methode in Klasse de.srsoftware.tools.SessionToken
 
addTo(HttpExchange) - Methode in Klasse de.srsoftware.tools.Cookie
add this cookie instance to a Headers object
allowCredentials(HttpExchange) - Statische Methode in Klasse de.srsoftware.tools.PathHandler
this method sets the 'Access-Control-Allow-Credentials' header value to true
allowOrigin(HttpExchange, String) - Statische Methode in Klasse de.srsoftware.tools.PathHandler
this method sets the 'Access-Control-Allow-Origin' header value
AUTHORIZATION - Statische Variable in Klasse de.srsoftware.tools.PathHandler
"Authorization"

B

badRequest(HttpExchange, byte[]) - Methode in Klasse de.srsoftware.tools.PathHandler
create a response with status code 400, send payload
badRequest(HttpExchange, Object) - Methode in Klasse de.srsoftware.tools.PathHandler
create a response with status code 400, send payload
BasicAuth(String, String) - Konstruktor für Datensatzklasse de.srsoftware.tools.PathHandler.BasicAuth
Erstellt eine Instanz einer Datensatzklasse BasicAuth.
bindPath(String...) - Methode in Klasse de.srsoftware.tools.PathHandler
Bind the PathHandler object to one/several paths
body(HttpExchange) - Statische Methode in Klasse de.srsoftware.tools.PathHandler
extracts the body of an HttpExchange

C

clone() - Methode in Klasse de.srsoftware.tools.Path
 
code() - Methode in Klasse de.srsoftware.tools.HttpError
return the error code assigned with this error
CONTENT_TYPE - Statische Variable in Klasse de.srsoftware.tools.PathHandler
"Content-Type"
contentType(HttpExchange) - Statische Methode in Klasse de.srsoftware.tools.PathHandler
extracts the request content type of a given HttpExchange
Cookie - Klasse in de.srsoftware.tools
This class allows to add cookies to a header object

D

de.srsoftware.tools - Package de.srsoftware.tools
 
decode(String) - Statische Methode in Klasse de.srsoftware.tools.Query
Transform an encoded query string into a map
DELETE - Statische Variable in Klasse de.srsoftware.tools.PathHandler
DELETE
doDelete(Path, HttpExchange) - Methode in Klasse de.srsoftware.tools.PathHandler
"not found" default implementation
doGet(Path, HttpExchange) - Methode in Klasse de.srsoftware.tools.PathHandler
"not found" default implementation
doOptions(Path, HttpExchange) - Methode in Klasse de.srsoftware.tools.PathHandler
"not found" default implementation
doPatch(Path, HttpExchange) - Methode in Klasse de.srsoftware.tools.PathHandler
"not found" default implementation
doPost(Path, HttpExchange) - Methode in Klasse de.srsoftware.tools.PathHandler
"not found" default implementation

E

encode(Map<String, ?>) - Statische Methode in Klasse de.srsoftware.tools.Query
Transform a Map to a query string
endsWith(String) - Methode in Klasse de.srsoftware.tools.Path
checks whether this path ends with the given string
equals(Object) - Methode in Datensatzklasse de.srsoftware.tools.PathHandler.BasicAuth
Gibt an, ob ein anderes Objekt diesem gleich ("equal to") ist.
equals(String) - Methode in Klasse de.srsoftware.tools.Path
checks, whether this path equals the given string

F

formData(HttpExchange) - Statische Methode in Klasse de.srsoftware.tools.PathHandler
fetches data from an form-urlencoded message body
FORWARDED_HOST - Statische Variable in Klasse de.srsoftware.tools.PathHandler
x-forwarded-host
FORWARDED_PROTO - Statische Variable in Klasse de.srsoftware.tools.PathHandler
X-forwarded-proto
from(HttpExchange) - Statische Methode in Klasse de.srsoftware.tools.SessionToken
extract the session token from an HttpExchange

G

GET - Statische Variable in Klasse de.srsoftware.tools.PathHandler
GET
getAuthToken(HttpExchange) - Statische Methode in Klasse de.srsoftware.tools.PathHandler
extract the value of an Authorization header, if present
getBasicAuth(HttpExchange) - Statische Methode in Klasse de.srsoftware.tools.PathHandler
retrieve and decode a basic auth header
getBearer(HttpExchange) - Statische Methode in Klasse de.srsoftware.tools.PathHandler
try to extract a bearer token from the headers of the HttpExchange
getHeader(HttpExchange, String) - Statische Methode in Klasse de.srsoftware.tools.PathHandler
get the value of a specific header field
getKey() - Methode in Klasse de.srsoftware.tools.Cookie
 
getValue() - Methode in Klasse de.srsoftware.tools.Cookie
 

H

handle(HttpExchange) - Methode in Klasse de.srsoftware.tools.PathHandler
 
handleMethod(String, Path, HttpExchange) - Methode in Klasse de.srsoftware.tools.PathHandler
Default implementation, defaulting to notFound(ex).
hashCode() - Methode in Datensatzklasse de.srsoftware.tools.PathHandler.BasicAuth
Gibt einen Hashcodewert für diese Objekt zurück.
HOST - Statische Variable in Klasse de.srsoftware.tools.PathHandler
host
hostname(HttpExchange) - Statische Methode in Klasse de.srsoftware.tools.PathHandler
get the hostname requested by the client from the host header or – if set – the hostname submitted in the x-forwarded-host header
HttpError<NONE> - Klasse in de.srsoftware.tools
A special Error type that additionally carries an error code
HttpError(int, String, Map<String, Object>, Collection<Exception>) - Konstruktor für Klasse de.srsoftware.tools.HttpError
create a new Error object carrying the passed message

J

json(HttpExchange) - Statische Methode in Klasse de.srsoftware.tools.PathHandler
Try to parse the body of this HttpExchange as JSON object

L

languages(HttpExchange) - Statische Methode in Klasse de.srsoftware.tools.PathHandler
request the Accept-Language header
LOG - Variable in Klasse de.srsoftware.tools.PathHandler
System Logger

N

notFound(HttpExchange) - Methode in Klasse de.srsoftware.tools.PathHandler
sends a "not found" response

O

of(int, Exception, String, Object...) - Statische Methode in Klasse de.srsoftware.tools.HttpError
create a new HttpError object carrying the passed message
of(int, String, Object...) - Statische Methode in Klasse de.srsoftware.tools.HttpError
create a new HttpError object carrying the passed message
of(int, Collection<Exception>, String, Object...) - Statische Methode in Klasse de.srsoftware.tools.HttpError
create a new HttpError object carrying the passed message
of(int, Map<String, Object>, Exception, String, Object...) - Statische Methode in Klasse de.srsoftware.tools.HttpError
create a new HttpError object carrying the passed message
of(int, Map<String, Object>, String, Object...) - Statische Methode in Klasse de.srsoftware.tools.HttpError
create a new HttpError object carrying the passed message
of(int, Map<String, Object>, Collection<Exception>, String, Object...) - Statische Methode in Klasse de.srsoftware.tools.HttpError
create a new HttpError object carrying the passed message
of(HttpExchange) - Statische Methode in Klasse de.srsoftware.tools.Cookie
list the cookies of a given HttpExchange object
of(String) - Statische Methode in Klasse de.srsoftware.tools.Path
create a new String stack from a given path
on(HttpServer) - Methode in Klasse de.srsoftware.tools.PathHandler.Bond
create a context on the server object for every path stored in this Bond
OPTIONS - Statische Variable in Klasse de.srsoftware.tools.PathHandler
OPTIONS

P

pass() - Methode in Datensatzklasse de.srsoftware.tools.PathHandler.BasicAuth
Gibt den Wert für die Datensatzkomponente pass zurück.
PATCH - Statische Variable in Klasse de.srsoftware.tools.PathHandler
PATCH
Path - Klasse in de.srsoftware.tools
This class represents a path given in an http request as stack of strings.
PathHandler - Klasse in de.srsoftware.tools
implementation of HttpHandler that attaches to a given path
PathHandler() - Konstruktor für Klasse de.srsoftware.tools.PathHandler
Creates a new instance
PathHandler.BasicAuth - Datensatzklasse in de.srsoftware.tools
Object to hold auth data
PathHandler.Bond - Klasse in de.srsoftware.tools
this class allows to bind a PathHandler to a HttpServer instance
peek() - Methode in Klasse de.srsoftware.tools.Path
 
pop() - Methode in Klasse de.srsoftware.tools.Path
 
POST - Statische Variable in Klasse de.srsoftware.tools.PathHandler
POST

Q

Query - Klasse in de.srsoftware.tools
This class provides method to decode and encode URL query parameters
queryParam(HttpExchange) - Statische Methode in Klasse de.srsoftware.tools.PathHandler
map the query from the Request URI to a map

R

relativePath(HttpExchange) - Methode in Klasse de.srsoftware.tools.PathHandler
convert the request URI to a path object

S

sendContent(HttpExchange, byte[]) - Methode in Klasse de.srsoftware.tools.PathHandler
send an array of bytes
sendContent(HttpExchange, int, byte[]) - Methode in Klasse de.srsoftware.tools.PathHandler
create a response given status code, send payload
sendContent(HttpExchange, int, Object) - Methode in Klasse de.srsoftware.tools.PathHandler
create a response given status code, send payload
sendContent(HttpExchange, Object) - Methode in Klasse de.srsoftware.tools.PathHandler
send an object, thereby trying to guess the correct mime and transmission type.
sendEmptyResponse(int, HttpExchange) - Statische Methode in Klasse de.srsoftware.tools.PathHandler
send a response without body
sendRedirect(HttpExchange, String) - Statische Methode in Klasse de.srsoftware.tools.PathHandler
send a redirect to the client
serverError(HttpExchange, Object) - Methode in Klasse de.srsoftware.tools.PathHandler
create a "internal server error" response
sessionId() - Methode in Klasse de.srsoftware.tools.SessionToken
return the string carried by this session token instance
SessionToken - Klasse in de.srsoftware.tools
a special cookies allowing to keep track of a session
SessionToken(String) - Konstruktor für Klasse de.srsoftware.tools.SessionToken
create a new sessoin token cookie carrying the given session id
SessionToken(String, String, Instant, boolean) - Konstruktor für Klasse de.srsoftware.tools.SessionToken
create a new sessoin token cookie carrying the given session id
setValue(String) - Methode in Klasse de.srsoftware.tools.Cookie
 

T

toString() - Methode in Klasse de.srsoftware.tools.Path
 
toString() - Methode in Datensatzklasse de.srsoftware.tools.PathHandler.BasicAuth
Gibt eine Zeichenfolgendarstellung dieser Datensatzklasse zurück.
transform() - Methode in Klasse de.srsoftware.tools.HttpError
create an HttpError with the same metadata content as this Object, but with different payload type

U

url(HttpExchange) - Statische Methode in Klasse de.srsoftware.tools.PathHandler
recover the URL from an HttpExchange object
userId() - Methode in Datensatzklasse de.srsoftware.tools.PathHandler.BasicAuth
Gibt den Wert für die Datensatzkomponente userId zurück.
A B C D E F G H J L N O P Q R S T U 
Alle Klassen und Schnittstellen|Alle Packages|Konstantenfeldwerte|Serialisierte Form