Package javax.ws.rs

High-level interfaces and annotations used to create RESTful service resources.

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 their javax.annotation.Priority class-level annotation value when used or applied by JAX-RS runtime.

    Eerste pagina van API Java Inhoudsopgave Haut

  • Enum Summary 
    Enum Description
    RuntimeType
    Enumeration of JAX-RS runtime types.

    Eerste pagina van API Java Inhoudsopgave Haut

  • Exception Summary 
    Exception Description
    BadRequestException
    A runtime exception indicating a bad client request.
    ClientErrorException
    A base runtime application exception indicating a client request error (HTTP 4xx status codes).
    ForbiddenException
    A runtime exception indicating that an access to a resource requested by a client has been forbidden by the server.
    InternalServerErrorException
    A runtime exception indicating an internal server error.
    NotAcceptableException
    A runtime exception indicating that a client request is not acceptable by the server.
    NotAllowedException
    A runtime exception indicating a client requesting a resource method that is not 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 was not found on the server.
    NotSupportedException
    A runtime exception indicating that the client request entity media type is not supported.
    ProcessingException
    A base JAX-RS runtime processing exception.
    RedirectionException
    A runtime application exception indicating a request redirection (HTTP 3xx status codes).
    ServerErrorException
    A base runtime application exception indicating a server error (HTTP 5xx status codes).
    ServiceUnavailableException
    A runtime exception indicating that the requested resource cannot be served.
    WebApplicationException
    Runtime exception for applications.

    Eerste pagina van API Java Inhoudsopgave Haut

  • Annotation Types Summary 
    Annotation Type Description
    ApplicationPath
    Identifies the application path that serves as the base URI for all resource URIs provided by Path.
    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 or MessageBodyReader 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, or HeaderParam.
    DELETE
    Indicates that the annotated method responds to HTTP DELETE requests.
    Encoded
    Disables automatic decoding of parameter values bound using QueryParam, PathParam, FormParam or MatrixParam.
    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 or MessageBodyWriter 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.

    Eerste pagina van API Java Inhoudsopgave Haut

Package javax.ws.rs Description

High-level interfaces and annotations used to create RESTful service resources. For example:
 @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);
     }

     ...
 }
 

Nederlandse vertaling

U hebt gevraagd om deze site in het Nederlands te bezoeken. Voor nu wordt alleen de interface vertaald, maar nog niet alle inhoud.

Als je me wilt helpen met vertalingen, is je bijdrage welkom. Het enige dat u hoeft te doen, is u op de site registreren en mij een bericht sturen waarin u wordt gevraagd om u toe te voegen aan de groep vertalers, zodat u de gewenste pagina's kunt vertalen. Een link onderaan elke vertaalde pagina geeft aan dat u de vertaler bent en heeft een link naar uw profiel.

Bij voorbaat dank.

Document heeft de 11/06/2005 gemaakt, de laatste keer de 18/08/2025 gewijzigd
Bron van het afgedrukte document:https://www.gaudry.be/nl/java-api-javaee-rf-javax/ws/rs/package-summary.html

De infobrol is een persoonlijke site waarvan de inhoud uitsluitend mijn verantwoordelijkheid is. De tekst is beschikbaar onder CreativeCommons-licentie (BY-NC-SA). Meer info op de gebruiksvoorwaarden en de auteur.

Referenties

  1. Bekijk - html-document Taal van het document:fr Manuel PHP : https://docs.oracle.com, javax.ws.rs (Java(TM) EE 7 Specification APIs)

Deze verwijzingen en links verwijzen naar documenten die geraadpleegd zijn tijdens het schrijven van deze pagina, of die aanvullende informatie kunnen geven, maar de auteurs van deze bronnen kunnen niet verantwoordelijk worden gehouden voor de inhoud van deze pagina.
De auteur van deze site is als enige verantwoordelijk voor de manier waarop de verschillende concepten, en de vrijheden die met de referentiewerken worden genomen, hier worden gepresenteerd. Vergeet niet dat u meerdere broninformatie moet doorgeven om het risico op fouten te verkleinen.