| Package | Description |
|---|---|
| org.restlet |
Core classes of the Restlet API.
|
| org.restlet.engine.adapter |
Adapters between low-level HTTP calls and high-level Restlet Request and
Response objects.
|
| org.restlet.engine.connector |
Integration with Java URLConnection class.
|
| org.restlet.engine.header |
Supports HTTP header parsing and formatting.
|
| org.restlet.engine.security |
Supports security.
|
| org.restlet.engine.util |
General utilities.
|
| Modifier and Type | Method and Description |
|---|---|
Series<Header> |
Message.getHeaders()
Returns the series of lower-level HTTP headers.
|
| Modifier and Type | Method and Description |
|---|---|
Series<Header> |
Call.getRequestHeaders()
Returns the modifiable list of request headers.
|
Series<Header> |
Call.getResponseHeaders()
Returns the modifiable list of server headers.
|
| Modifier and Type | Method and Description |
|---|---|
Series<Header> |
HttpExchangeCall.getRequestHeaders() |
Series<Header> |
HttpUrlConnectionCall.getResponseHeaders()
Returns the modifiable list of response headers.
|
| Modifier and Type | Method and Description |
|---|---|
static Header |
HeaderReader.readHeader(CharSequence header)
Read a header.
|
static Header |
HeaderReader.readHeader(InputStream is,
StringBuilder sb)
Read a header.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
CacheDirectiveReader.addValues(Header header,
Collection<CacheDirective> collection)
Adds values to the given collection.
|
static void |
DimensionReader.addValues(Header header,
Collection<Dimension> collection)
Adds values to the given collection.
|
static void |
MethodReader.addValues(Header header,
Collection<Method> collection)
Adds values to the given collection.
|
static void |
RecipientInfoReader.addValues(Header header,
Collection<RecipientInfo> collection)
Adds values to the given collection.
|
static void |
StringReader.addValues(Header header,
Collection<String> collection)
Adds values to the given collection.
|
static void |
TagReader.addValues(Header header,
Collection<Tag> collection)
Adds values to the given collection.
|
static void |
WarningReader.addValues(Header header,
Collection<Warning> collection)
Adds values to the given collection.
|
static void |
HeaderUtils.writeHeaderLine(Header header,
OutputStream os)
Writes a header line.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
HeaderUtils.addEntityHeaders(Representation entity,
Series<Header> headers)
Adds the entity headers based on the
Representation to the
Series. |
static void |
HeaderUtils.addExtensionHeaders(Series<Header> existingHeaders,
Series<Header> additionalHeaders)
Adds extension headers if they are non-standard headers.
|
static void |
HeaderUtils.addExtensionHeaders(Series<Header> existingHeaders,
Series<Header> additionalHeaders)
Adds extension headers if they are non-standard headers.
|
static void |
HeaderUtils.addGeneralHeaders(Message message,
Series<Header> headers)
|
static void |
HeaderUtils.addHeader(String headerName,
String headerValue,
Series<Header> headers)
Adds a header to the given list.
|
static void |
HeaderUtils.addNotModifiedEntityHeaders(Representation entity,
Series<Header> headers)
Adds the entity headers based on the
Representation to the
Series when a 304 (Not Modified) status is returned. |
static void |
HeaderUtils.addRequestHeaders(Request request,
Series<Header> headers)
|
static void |
HeaderUtils.addResponseHeaders(Response response,
Series<Header> headers)
|
static void |
HeaderUtils.copyExtensionHeaders(Series<Header> headers,
Message message)
Copies extension headers into a request or a response.
|
static void |
HeaderUtils.copyResponseTransportHeaders(Series<Header> headers,
Response response)
Copies headers into a response.
|
static Representation |
HeaderUtils.extractEntityHeaders(Iterable<Header> headers,
Representation representation)
Extracts entity headers and updates a given representation or create an empty
one when at least one entity header is present.
|
static long |
HeaderUtils.getContentLength(Series<Header> headers)
Returns the content length of the request entity if know,
Representation.UNKNOWN_SIZE otherwise. |
static boolean |
HeaderUtils.isChunkedEncoding(Series<Header> headers)
Indicates if the entity is chunked.
|
static boolean |
HeaderUtils.isConnectionClose(Series<Header> headers)
Indicates if the connection must be closed.
|
| Modifier and Type | Method and Description |
|---|---|
static String |
AuthenticatorUtils.formatRequest(ChallengeRequest challenge,
Response response,
Series<Header> httpHeaders)
Formats a challenge request as a HTTP header value.
|
void |
AuthenticatorHelper.formatRequest(ChallengeWriter cw,
ChallengeRequest challenge,
Response response,
Series<Header> httpHeaders)
Formats a challenge request as raw credentials.
|
void |
HttpBasicHelper.formatRequest(ChallengeWriter cw,
ChallengeRequest challenge,
Response response,
Series<Header> httpHeaders) |
static String |
AuthenticatorUtils.formatResponse(ChallengeResponse challenge,
Request request,
Series<Header> httpHeaders)
Formats a challenge response as a HTTP header value.
|
void |
AuthenticatorHelper.formatResponse(ChallengeWriter cw,
ChallengeResponse challenge,
Request request,
Series<Header> httpHeaders)
Formats a challenge response as raw credentials.
|
void |
HttpBasicHelper.formatResponse(ChallengeWriter cw,
ChallengeResponse challenge,
Request request,
Series<Header> httpHeaders) |
void |
SmtpPlainHelper.formatResponse(ChallengeWriter cw,
ChallengeResponse challenge,
Request request,
Series<Header> httpHeaders)
Deprecated.
|
void |
AuthenticatorHelper.parseRequest(ChallengeRequest challenge,
Response response,
Series<Header> httpHeaders)
Parses an authenticate header into a challenge request.
|
void |
HttpBasicHelper.parseRequest(ChallengeRequest challenge,
Response response,
Series<Header> httpHeaders) |
static List<ChallengeRequest> |
AuthenticatorUtils.parseRequest(Response response,
String header,
Series<Header> httpHeaders)
Parses an authenticate header into a list of challenge request.
|
void |
AuthenticatorHelper.parseResponse(ChallengeResponse challenge,
Request request,
Series<Header> httpHeaders)
Parses an authorization header into a challenge response.
|
void |
HttpBasicHelper.parseResponse(ChallengeResponse challenge,
Request request,
Series<Header> httpHeaders) |
static ChallengeResponse |
AuthenticatorUtils.parseResponse(Request request,
String header,
Series<Header> httpHeaders)
Parses an authorization header into a challenge response.
|
| Modifier and Type | Method and Description |
|---|---|
static Reference |
ReferenceUtils.getOriginalRef(Reference resourceRef,
Series<Header> headers)
Returns the original reference especially by detecting potential proxy
forwardings.
|
Copyright © 2005–2025. All rights reserved.