Package javax.websocket

This package contains all the WebSocket APIs common to both the client and server side.

See: Description

  • Interface Summary 
    Interface Description
    ClientEndpointConfig
    The ClientEndpointConfig is a special kind of endpoint configuration object that contains web socket configuration information specific only to client endpoints.
    CloseReason.CloseCode
    A marker interface for the close codes.
    Decoder
    The Decoder interface holds member interfaces that define how a developer can provide the web socket container a way web socket messages into developer defined custom objects.
    Decoder.Binary<T>
    This interface defines how a custom object (of type T) is decoded from a web socket message in the form of a byte buffer.
    Decoder.BinaryStream<T>
    This interface defines how a custom object is decoded from a web socket message in the form of a binary stream.
    Decoder.Text<T>
    This interface defines how a custom object is decoded from a web socket message in the form of a string.
    Decoder.TextStream<T>
    This interface defines how a custom object of type T is decoded from a web socket message in the form of a character stream.
    Encoder
    The Encoder interface defines how developers can provide a way to convert their custom objects into web socket messages.
    Encoder.Binary<T>
    This interface defines how to provide a way to convert a custom object into a binary message.
    Encoder.BinaryStream<T>
    This interface may be implemented by encoding algorithms that want to write the encoded object to a binary stream.
    Encoder.Text<T>
    This interface defines how to provide a way to convert a custom object into a text message.
    Encoder.TextStream<T>
    This interface may be implemented by encoding algorithms that want to write the encoded object to a character stream.
    EndpointConfig
    The endpoint configuration contains all the information needed during the handshake process for this end point.
    Extension
    A simple representation of a websocket extension as a name and map of extension parameters.
    Extension.Parameter
    This member interface defines a single websocket extension parameter.
    HandshakeResponse
    The handshake response represents the web socket-defined Http response that is the response to the opening handshake request.
    MessageHandler
    Developers implement MessageHandlers in order to receive incoming messages during a web socket conversation.
    MessageHandler.Partial<T>
    This kind of handler is notified by the implementation as it becomes ready to deliver parts of a whole message.
    MessageHandler.Whole<T>
    This kind of handler is notified by the container on arrival of a complete message.
    PongMessage
    The PongMessage interface represents a web socket pong.
    RemoteEndpoint
    The RemoteEndpoint object is supplied by the container and represents the 'other end' or peer of the Web Socket conversation.
    RemoteEndpoint.Async
    This representation of the peer of a web socket conversation has the ability to send messages asynchronously.
    RemoteEndpoint.Basic
    This representation of the peer of a web socket conversation has the ability to send messages synchronously.
    SendHandler
    A simple callback object for asynchronous sending of web socket messages.
    Session
    A Web Socket session represents a conversation between two web socket endpoints.
    WebSocketContainer
    A WebSocketContainer is an implementation provided object that provides applications a view on the container running it.

    Erste Seite von API Java Inhaltsverzeichnis Haut

  • Class Summary 
    Class Description
    ClientEndpointConfig.Builder
    The ClientEndpointConfig.Builder is a class used for creating ClientEndpointConfig objects for the purposes of deploying a client endpoint.
    ClientEndpointConfig.Configurator
    The Configurator class may be extended by developers who want to provide custom configuration algorithms, such as intercepting the opening handshake, or providing arbitrary methods and algorithms that can be accessed from each endpoint instance configured with this configurator.
    CloseReason
    A class encapsulating the reason why a web socket has been closed, or why it is being asked to close.
    ContainerProvider
    Provider class that allows the developer to get a reference to the implementation of the WebSocketContainer.
    Endpoint
    The Web Socket Endpoint represents an object that can handle websocket conversations.
    SendResult
    The result of asynchronously sending a web socket message.

    Erste Seite von API Java Inhaltsverzeichnis Haut

  • Enum Summary 
    Enum Description
    CloseReason.CloseCodes
    An Enumeration of status codes for a web socket close that are defined in the specification.

    Erste Seite von API Java Inhaltsverzeichnis Haut

  • Exception Summary 
    Exception Description
    DecodeException
    A general exception that occurs when trying to decode a custom object from a text or binary message.
    DeploymentException
    Checked exception indicating some kind of failure either to publish an endpoint on its server, or a failure to connect a client to its server.
    EncodeException
    A general exception that occurs when trying to encode a custom object to a string or binary message.
    SessionException
    A SessionException represents a general exception type reporting problems occurring on a websocket session.

    Erste Seite von API Java Inhaltsverzeichnis Haut

  • Annotation Types Summary 
    Annotation Type Description
    ClientEndpoint
    The ClientEndpoint annotation a class level annotation is used to denote that a POJO is a web socket client and can be deployed as such.
    OnClose
    This method level annotation can be used to decorate a Java method that wishes to be called when a web socket session is closing.
    OnError
    This method level annotation can be used to decorate a Java method that wishes to be called in order to handle errors.
    OnMessage
    This method level annotation can be used to make a Java method receive incoming web socket messages.
    OnOpen
    This method level annotation can be used to decorate a Java method that wishes to be called when a new web socket session is open.

    Erste Seite von API Java Inhaltsverzeichnis Haut

Package javax.websocket Description

This package contains all the WebSocket APIs common to both the client and server side.

Deutsche Übersetzung

Sie haben gebeten, diese Seite auf Deutsch zu besuchen. Momentan ist nur die Oberfläche übersetzt, aber noch nicht der gesamte Inhalt.

Wenn Sie mir bei Übersetzungen helfen wollen, ist Ihr Beitrag willkommen. Alles, was Sie tun müssen, ist, sich auf der Website zu registrieren und mir eine Nachricht zu schicken, in der Sie gebeten werden, Sie der Gruppe der Übersetzer hinzuzufügen, die Ihnen die Möglichkeit gibt, die gewünschten Seiten zu übersetzen. Ein Link am Ende jeder übersetzten Seite zeigt an, dass Sie der Übersetzer sind und einen Link zu Ihrem Profil haben.

Vielen Dank im Voraus.

Dokument erstellt 11/06/2005, zuletzt geändert 18/08/2025
Quelle des gedruckten Dokuments:https://www.gaudry.be/de/java-api-javaee-rf-javax/websocket/package-summary.html

Die Infobro ist eine persönliche Seite, deren Inhalt in meiner alleinigen Verantwortung liegt. Der Text ist unter der CreativeCommons-Lizenz (BY-NC-SA) verfügbar. Weitere Informationen auf die Nutzungsbedingungen und dem Autor.

Referenzen

  1. Zeigen Sie - html-Dokument Sprache des Dokuments:fr Manuel PHP : https://docs.oracle.com, javax.websocket (Java(TM) EE 7 Specification APIs)

Diese Verweise und Links verweisen auf Dokumente, die während des Schreibens dieser Seite konsultiert wurden, oder die zusätzliche Informationen liefern können, aber die Autoren dieser Quellen können nicht für den Inhalt dieser Seite verantwortlich gemacht werden.
Der Autor dieser Website ist allein dafür verantwortlich, wie die verschiedenen Konzepte und Freiheiten, die mit den Nachschlagewerken gemacht werden, hier dargestellt werden. Denken Sie daran, dass Sie mehrere Quellinformationen austauschen müssen, um das Risiko von Fehlern zu reduzieren.