Top Methods
jakarta.websocket.server

public @Interface ServerEndpoint

extends Annotation
Annotations
@Retention:RUNTIME
@Target:TYPE
Imports
java.lang.annotation.ElementType, .Retention, .RetentionPolicy, .Target, jakarta.websocket.Decoder, .Encoder

Method Summary

Modifier and TypeMethod and Description
public Class<? extends ServerEndpointConfig.Configurator>
public Class<? extends Decoder>[]
public Class<? extends Encoder>[]
public String[]
public String

Returns:

The URI or URI-template that the annotated class should be mapped to.
value
()

URI or URI-template that the annotated class should be mapped to.

Inherited from java.lang.annotation.Annotation:
annotationTypeequalshashCodetoString

Method Detail

configuratorback to summary
public Class<? extends ServerEndpointConfig.Configurator> configurator()
decodersback to summary
public Class<? extends Decoder>[] decoders()
encodersback to summary
public Class<? extends Encoder>[] encoders()
subprotocolsback to summary
public String[] subprotocols()
valueback to summary
public String value()

URI or URI-template that the annotated class should be mapped to.

Returns:String

The URI or URI-template that the annotated class should be mapped to.