org.glassfish.jersey.server.internal.routing
Class RuntimeModelBuilder

java.lang.Object
  extended by org.glassfish.jersey.server.internal.routing.RuntimeModelBuilder

public final class RuntimeModelBuilder
extends java.lang.Object

This is a common base for root resource and sub-resource runtime model builder.

Author:
Marek Potociar (marek.potociar at oracle.com)

Constructor Summary
RuntimeModelBuilder()
           
RuntimeModelBuilder(MessageBodyWorkers workers, boolean subResourceMode)
          Create a new runtime model builder.
 
Method Summary
 Router buildModel()
          Build a runtime model.
 void process(Resource resource)
          Process a single resource model and add it to the currently build runtime routing and accepting model.
 void setWorkers(MessageBodyWorkers workers)
          Set the message body workers.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RuntimeModelBuilder

public RuntimeModelBuilder()

RuntimeModelBuilder

public RuntimeModelBuilder(MessageBodyWorkers workers,
                           boolean subResourceMode)
Create a new runtime model builder.

Parameters:
workers - message body workers.
subResourceMode - if true, all the resources will be processed as a sub-resources.
Method Detail

process

public void process(Resource resource)
Process a single resource model and add it to the currently build runtime routing and accepting model.

Parameters:
resource - resource model to be processed.

buildModel

public Router buildModel()
Build a runtime model.

Returns:
runtime request routing root.

setWorkers

public void setWorkers(MessageBodyWorkers workers)
Set the message body workers.

Parameters:
workers - new message body workers.


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