# RESTful Web Services from Patterns Wizard: Specify Resource Classes (Client Controlled Container Item)

Container-Item RESTful web services consist of an item resource class and its container resource class. Both item and container use Java API for RESTful Web Service (JSR-311).

This panel contains the following fields, which specify the class name, URI, and representation type of the resource.

Element | Description
--- | ---
Resource Name | Name for an item resource. Default is /Item.
Class Name | Name for the item resource class. Default is ItemResource.
Container Class Name | Name of the container class. Default is ItemsResource.
Project | The NetBeans IDE project containing this RESTful service. The value is generated by the IDE.
Location | The parent directory inside the NetBeans IDE project that contains the RESTful service. By default this is the Source Packages directory.
Resource Package | The package containing the RESTful service classes. Select from a drop-down list of packages or type the name of a new package. These packages are in the directory specified in the Location field.
Path | The path, passed as an argument of the `@Path` annotation. For Container-Item services, the Path is a variable that identifies individual instances of the item resource class. The default value of Path is {id}.
Container Path | The path of the container resource, passed as an argument of the @Path annotation for the container class declaration. By default the Path is /Items.
MIME Type | MIME type of RESTful service requests and responses, passed as arguments of the `@Produces` and `@Consumes` annotations. The default MIME type is `application/xml`. Therefore the default `@Produces` and `@Consumes` annotations are `@Produces("application/xml")` and `@Consumes("application/xml")`.
Representation Class | Class of the representation of the item resource class instance returned by a get method. Default class is `java.lang.String`.
Container Representation Class | Class of the representation of the container resource class instance returned by a get method. Default class is `java.lang.String`.

Related Topics

Developing Applications with NetBeans IDE,

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.