Package org.gnome.soup
The following native libraries are required and will be loaded: libsoup-3.0.so
For namespace-global declarations, refer to the Soup
class documentation.
This package is only available on linux.
Soup-method
soup-method.h contains a number of defines for standard HTTP and WebDAV headers. You do not need to use these defines; you can pass arbitrary strings to soup_message_new() if you prefer.
The thing that these defines <emphasis>are</emphasis> useful for is
performing quick comparisons against soup_message_get_method();
because SoupMessage
always contains an interned string, and these
macros return interned strings, you can compare methods directly
against these macros rather than needing to use strcmp(). This is
most useful in SoupServer
handlers. Eg:
<informalexample><programlisting> if (soup_message_get_method (msg) != SOUP_METHOD_GET && soup_message_get_method (msg) != SOUP_METHOD_HEAD) { soup_message_set_status (msg, SOUP_METHOD_NOT_IMPLEMENTED); return; } </programlisting></informalexample>
-
ClassDescriptionThe abstract base class for handling authentication.The AuthImpl type represents a native instance of the abstract Auth class.Auth.Builder<B extends Auth.Builder<B>>Inner class implementing a builder pattern to construct a GObject with properties.HTTP "Basic" authentication.AuthBasic.Builder<B extends AuthBasic.Builder<B>>Inner class implementing a builder pattern to construct a GObject with properties.HTTP "Digest" authentication.AuthDigest.Builder<B extends AuthDigest.Builder<B>>Inner class implementing a builder pattern to construct a GObject with properties.Server-side authentication.The AuthDomainImpl type represents a native instance of the abstract AuthDomain class.AuthDomain.Builder<B extends AuthDomain.Builder<B>>Inner class implementing a builder pattern to construct a GObject with properties.Server-side "Basic" authentication.AuthDomainBasic.Builder<B extends AuthDomainBasic.Builder<B>>Inner class implementing a builder pattern to construct a GObject with properties.Functional interface declaration of the
AuthDomainBasicAuthCallback
callback.Server-side "Digest" authentication.AuthDomainDigest.Builder<B extends AuthDomainDigest.Builder<B>>Inner class implementing a builder pattern to construct a GObject with properties.Functional interface declaration of theAuthDomainDigestAuthCallback
callback.Functional interface declaration of theAuthDomainFilter
callback.Functional interface declaration of theAuthDomainGenericAuthCallback
callback.HTTP client-side authentication handler.AuthManager.Builder<B extends AuthManager.Builder<B>>Inner class implementing a builder pattern to construct a GObject with properties.HTTP-based GSS-Negotiate authentication, as defined by RFC 4559.AuthNegotiate.Builder<B extends AuthNegotiate.Builder<B>>Inner class implementing a builder pattern to construct a GObject with properties.HTTP-based NTLM authentication.AuthNTLM.Builder<B extends AuthNTLM.Builder<B>>Inner class implementing a builder pattern to construct a GObject with properties.File-based cache for HTTP resources.Cache.Builder<B extends Cache.Builder<B>>Inner class implementing a builder pattern to construct a GObject with properties.Indicates if a message should or shouldn't be cached.The type of cache; this affects what kinds of responses will be saved.Handles decoding of HTTP messages.ContentDecoder.Builder<B extends ContentDecoder.Builder<B>>Inner class implementing a builder pattern to construct a GObject with properties.Sniffs the mime type of messages.ContentSniffer.Builder<B extends ContentSniffer.Builder<B>>Inner class implementing a builder pattern to construct a GObject with properties.Implements HTTP cookies, as described by RFC 6265.Automatic cookie handling for SoupSession.CookieJar.Builder<B extends CookieJar.Builder<B>>Inner class implementing a builder pattern to construct a GObject with properties.Functional interface declaration of theChangedCallback
callback.The policy for accepting or rejecting cookies returned in responses.Database-based Cookie Jar.CookieJarDB.Builder<B extends CookieJarDB.Builder<B>>Inner class implementing a builder pattern to construct a GObject with properties.Text-file-based ("cookies.txt") Cookie JarCookieJarText.Builder<B extends CookieJarText.Builder<B>>Inner class implementing a builder pattern to construct a GObject with properties.Date formats thatSoup.dateTimeToString(org.gnome.glib.DateTime, org.gnome.soup.DateFormat)
can use.How a message body is encoded for transportRepresents the parsed value of the "Expect" header.Automatic HTTP Strict Transport Security enforcing forSession
.HSTSEnforcer.Builder<B extends HSTSEnforcer.Builder<B>>Inner class implementing a builder pattern to construct a GObject with properties.Functional interface declaration of theChangedCallback
callback.Class structure forSoupHSTSEnforcer
.Persistent HTTP Strict Transport Security enforcer.HSTSEnforcerDB.Builder<B extends HSTSEnforcerDB.Builder<B>>Inner class implementing a builder pattern to construct a GObject with properties.SoupHSTSPolicy
implements HTTP policies, as described by RFC 6797.Indicates the HTTP protocol version being used.Debug logging supportLogger.Builder<B extends Logger.Builder<B>>Inner class implementing a builder pattern to construct a GObject with properties.Functional interface declaration of theLoggerFilter
callback.Describes the level of logging output to provide.Functional interface declaration of theLoggerPrinter
callback.The lifetime of the memory being passed.Represents an HTTP message being sent or received.Functional interface declaration of theAcceptCertificateCallback
callback.Functional interface declaration of theAuthenticateCallback
callback.Message.Builder<B extends Message.Builder<B>>Inner class implementing a builder pattern to construct a GObject with properties.Functional interface declaration of theContentSniffedCallback
callback.Functional interface declaration of theFinishedCallback
callback.Functional interface declaration of theGotBodyCallback
callback.Functional interface declaration of theGotBodyDataCallback
callback.Functional interface declaration of theGotHeadersCallback
callback.Functional interface declaration of theGotInformationalCallback
callback.Functional interface declaration of theHstsEnforcedCallback
callback.Functional interface declaration of theNetworkEventCallback
callback.Functional interface declaration of theRequestCertificateCallback
callback.Functional interface declaration of theRequestCertificatePasswordCallback
callback.Functional interface declaration of theRestartedCallback
callback.Functional interface declaration of theStartingCallback
callback.Functional interface declaration of theWroteBodyCallback
callback.Functional interface declaration of theWroteBodyDataCallback
callback.Functional interface declaration of theWroteHeadersCallback
callback.SoupMessageBody
represents the request or response body of aMessage
.Various flags that can be set on aSoupMessage
to alter its behavior.The HTTP message headers associated with a request or response.Functional interface declaration of theMessageHeadersForeachFunc
callback.An opaque type used to iterate over aSoupMessageHeaders
structure.Value passed toMessageHeaders(org.gnome.soup.MessageHeadersType)
to set certain default behaviors.Contains metrics collected while loading aMessage
either from the network or the disk cache.Priorities that can be set on aMessage
to instruct the message queue to process it before any other message with lower priority.Represents a multipart HTTP message body, parsed according to the syntax of RFC 2046.Handles streams of multipart messages.MultipartInputStream.Builder<B extends MultipartInputStream.Builder<B>>Inner class implementing a builder pattern to construct a GObject with properties.Represents a byte range as used in the Range header.Represents the same-site policies of a cookie.A HTTP server.Server.Builder<B extends Server.Builder<B>>Inner class implementing a builder pattern to construct a GObject with properties.Functional interface declaration of theRequestAbortedCallback
callback.Functional interface declaration of theRequestFinishedCallback
callback.Functional interface declaration of theRequestReadCallback
callback.Functional interface declaration of theRequestStartedCallback
callback.Functional interface declaration of theServerCallback
callback.Options to pass toServer.listen(org.gnome.gio.SocketAddress, java.util.Set<org.gnome.soup.ServerListenOptions>)
, etc.An HTTP server request and response pair.Functional interface declaration of theAcceptCertificateCallback
callback.ServerMessage.Builder<B extends ServerMessage.Builder<B>>Inner class implementing a builder pattern to construct a GObject with properties.Functional interface declaration of theConnectedCallback
callback.Functional interface declaration of theDisconnectedCallback
callback.Functional interface declaration of theFinishedCallback
callback.Functional interface declaration of theGotBodyCallback
callback.Functional interface declaration of theGotChunkCallback
callback.Functional interface declaration of theGotHeadersCallback
callback.Functional interface declaration of theWroteBodyCallback
callback.Functional interface declaration of theWroteBodyDataCallback
callback.Functional interface declaration of theWroteChunkCallback
callback.Functional interface declaration of theWroteHeadersCallback
callback.Functional interface declaration of theWroteInformationalCallback
callback.Functional interface declaration of theServerWebsocketCallback
callback.Soup session state object.Session.Builder<B extends Session.Builder<B>>Inner class implementing a builder pattern to construct a GObject with properties.Functional interface declaration of theRequestQueuedCallback
callback.Functional interface declaration of theRequestUnqueuedCallback
callback.ASoupSession
error.Interface for miscellaneousSession
features.The SessionFeatureImpl type represents a native instance of the SessionFeature interface.The interface implemented bySessionFeature
s.Constants and functions that are declared in the global Soup namespace.These represent the known HTTP status code values, plus various network and internal errors.Error codes forSOUP_TLD_ERROR
.Enum values passed toSoup.uriCopy(org.gnome.glib.Uri, org.gnome.soup.URIComponent, java.lang.Object...)
to indicate the components of the URI that should be updated with the given values.Pre-defined close codes that can be passed toWebsocketConnection.close(short, java.lang.String)
or received fromWebsocketConnection.getCloseCode()
.The WebSocket ProtocolWebsocketConnection.Builder<B extends WebsocketConnection.Builder<B>>Inner class implementing a builder pattern to construct a GObject with properties.Functional interface declaration of theClosedCallback
callback.Functional interface declaration of theClosingCallback
callback.Functional interface declaration of theErrorCallback
callback.Functional interface declaration of theMessageCallback
callback.Functional interface declaration of thePongCallback
callback.The abstract base class forWebsocketConnection
.The type of aWebsocketConnection
.The type of data contained in aWebsocketConnection::message
signal.WebSocket-related errors.A WebSocket extensionWebsocketExtension.Builder<B extends WebsocketExtension.Builder<B>>Inner class implementing a builder pattern to construct a GObject with properties.The class structure for theSoupWebsocketExtension
.The WebsocketExtensionImpl type represents a native instance of the abstract WebsocketExtension class.A SoupWebsocketExtensionDeflate is aWebsocketExtension
implementing permessage-deflate (RFC 7692).Inner class implementing a builder pattern to construct a GObject with properties.SoupWebsocketExtensionManager is theSessionFeature
that handles WebSockets extensions for aSession
.Inner class implementing a builder pattern to construct a GObject with properties.The state of the WebSocket connection.