|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.glassfish.jersey.server.internal.routing.RuntimeModelBuilder
public final class RuntimeModelBuilder
This is a common base for root resource and sub-resource runtime model builder.
| Constructor Summary | |
|---|---|
RuntimeModelBuilder()
|
|
| Method Summary | |
|---|---|
Router |
buildModel(boolean subResourceMode)
Build a runtime model. |
void |
process(Resource resource,
boolean subResourceMode)
Process a single resource model and add it to the currently build runtime routing and accepting model. |
void |
setBoundProviders(MultivaluedMap<Class<? extends Annotation>,ContainerRequestFilter> nameBoundRequestFilters,
MultivaluedMap<Class<? extends Annotation>,ContainerResponseFilter> nameBoundResponseFilters,
MultivaluedMap<Class<? extends Annotation>,ReaderInterceptor> nameBoundReaderInterceptors,
MultivaluedMap<Class<? extends Annotation>,WriterInterceptor> nameBoundWriterInterceptors,
List<DynamicBinder> dynamicBinders)
Set the name bound filters and dynamic binders. |
void |
setGlobalInterceptors(Collection<ReaderInterceptor> readerInterceptors,
Collection<WriterInterceptor> writerInterceptors)
Set global reader and writer interceptors. |
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 |
|---|
public RuntimeModelBuilder()
| Method Detail |
|---|
public void process(Resource resource,
boolean subResourceMode)
resource - resource model to be processed.subResourceMode - if true, all resources will be processed as sub-resources.public Router buildModel(boolean subResourceMode)
subResourceMode - if true, all resources will be processed as sub-resources.
public void setWorkers(MessageBodyWorkers workers)
workers - new message body workers.
public void setGlobalInterceptors(Collection<ReaderInterceptor> readerInterceptors,
Collection<WriterInterceptor> writerInterceptors)
readerInterceptors - global reader interceptors.writerInterceptors - global writer interceptors.
public void setBoundProviders(MultivaluedMap<Class<? extends Annotation>,ContainerRequestFilter> nameBoundRequestFilters,
MultivaluedMap<Class<? extends Annotation>,ContainerResponseFilter> nameBoundResponseFilters,
MultivaluedMap<Class<? extends Annotation>,ReaderInterceptor> nameBoundReaderInterceptors,
MultivaluedMap<Class<? extends Annotation>,WriterInterceptor> nameBoundWriterInterceptors,
List<DynamicBinder> dynamicBinders)
nameBoundRequestFilters - name bound request filters.nameBoundResponseFilters - name bound response filters.nameBoundReaderInterceptors - name bound reader interceptors.nameBoundWriterInterceptors - name bound writer interceptors.dynamicBinders - dynamic binders.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||