Package javax.ws.rs
See: Description
-
Class Summary Class Description Priorities A collection of built-in priority constants for the JAX-RS components that are supposed to be ordered based on theirjavax.annotation.Priority
class-level annotation value when used or applied by JAX-RS runtime. -
Enum Summary Enum Description RuntimeType Enumeration of JAX-RS runtime types. -
Exception Summary Exception Description BadRequestException A runtime exception indicating abad client request
.ClientErrorException A base runtime application exception indicating a client request error (HTTP4xx
status codes).ForbiddenException A runtime exception indicating that an access to a resource requested by a client has beenforbidden
by the server.InternalServerErrorException A runtime exception indicating aninternal server error
.NotAcceptableException A runtime exception indicating that a client request isnot acceptable
by the server.NotAllowedException A runtime exception indicating a client requesting a resource method that isnot allowed
.NotAuthorizedException A runtime exception indicating request authorization failure caused by one of the following scenarios: a client did not send the required authorization credentials to access the requested resource, i.e.NotFoundException A runtime exception indicating a resource requested by a client wasnot found
on the server.NotSupportedException A runtime exception indicating that the client request entity media type isnot supported
.ProcessingException A base JAX-RS runtime processing exception.RedirectionException A runtime application exception indicating a request redirection (HTTP3xx
status codes).ServerErrorException A base runtime application exception indicating a server error (HTTP5xx
status codes).ServiceUnavailableException A runtime exception indicating that the requested resourcecannot be served
.WebApplicationException Runtime exception for applications. -
Annotation Types Summary Annotation Type Description ApplicationPath Identifies the application path that serves as the base URI for all resource URIs provided byPath
.BeanParam The annotation that may be used to inject custom JAX-RS "parameter aggregator" value object into a resource class field, property or resource method parameter.ConstrainedTo Indicates the run-time context in which an annotated JAX-RS provider is applicable.Consumes Defines the media types that the methods of a resource class orMessageBodyReader
can accept.CookieParam Binds the value of a HTTP cookie to a resource method parameter, resource class field, or resource class bean property.DefaultValue Defines the default value of request meta-data that is bound using one of the following annotations:PathParam
,QueryParam
,MatrixParam
,CookieParam
,FormParam
, orHeaderParam
.DELETE Indicates that the annotated method responds to HTTP DELETE requests.Encoded Disables automatic decoding of parameter values bound usingQueryParam
,PathParam
,FormParam
orMatrixParam
.FormParam Binds the value(s) of a form parameter contained within a request entity body to a resource method parameter.GET Indicates that the annotated method responds to HTTP GET requests.HEAD Indicates that the annotated method responds to HTTP HEAD requests.HeaderParam Binds the value(s) of a HTTP header to a resource method parameter, resource class field, or resource class bean property.HttpMethod Associates the name of a HTTP method with an annotation.MatrixParam Binds the value(s) of a URI matrix parameter to a resource method parameter, resource class field, or resource class bean property.NameBinding Meta-annotation used to create name binding annotations for filters and interceptors.OPTIONS Indicates that the annotated method responds to HTTP OPTIONS requests.Path Identifies the URI path that a resource class or class method will serve requests for.PathParam Binds the value of a URI template parameter or a path segment containing the template parameter to a resource method parameter, resource class field, or resource class bean property.POST Indicates that the annotated method responds to HTTP POST requests.Produces Defines the media type(s) that the methods of a resource class orMessageBodyWriter
can produce.PUT Indicates that the annotated method responds to HTTP PUT requests.QueryParam Binds the value(s) of a HTTP query parameter to a resource method parameter, resource class field, or resource class bean property.
Package javax.ws.rs Description
@Path("widgets/{widgetid}") @Consumes("application/widgets+xml") @Produces("application/widgets+xml") public class WidgetResource { @GET public String getWidget(@PathParam("widgetid") String id) { return getWidgetAsXml(id); } @PUT public void updateWidget(@PathParam("widgetid") String id, Source update) { updateWidgetFromXml(id, update); } ... }
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/ws/rs/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
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.