org.glassfish.jersey.server
Interface Application.Builder

Enclosing class:
Application

public static interface Application.Builder

Jersey application builder that provides programmatic API for creating server-side JAX-RS / Jersey applications.


Nested Class Summary
static interface Application.Builder.BoundBuilder
          Represents a supported resource path to which new resource methods and sub-resource locators can be attached.
static interface Application.Builder.ResourceMethodBuilder
          Application builder used for binding a new resource method to an Inflector<Request, Response> responsible for processing requests targeted at the bound path and the particular method(s).
 
Method Summary
 Application.Builder.BoundBuilder bind(String path)
          Bind a resource to a path within the application.
 Application build()
          Build new application based on the defined resource bindings and provider configuration.
 

Method Detail

bind

Application.Builder.BoundBuilder bind(String path)
Bind a resource to a path within the application.

TODO elaborate on javadoc.

Parameters:
path - resource path.
Returns:
resource builder bound to the path.

build

Application build()
Build new application based on the defined resource bindings and provider configuration.

Returns:
new application instance.


Copyright © 2007-2012 Oracle Corporation. All Rights Reserved. Use is subject to license terms.