|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.trialox.jaxrs.JaxRsHandler
public class JaxRsHandler
Am implementation of Jax-Rs (aka JSR 311) based on wrhapi.
It support both injection of javax.ws.rs.core.Application
instances, as well as direct injection of Providers and root
resources. For direct injection a component jas to expose a service of
type java.lang.Object and have the property "javax.ws.rs" set to
true.
| Constructor Summary | |
|---|---|
JaxRsHandler()
|
|
| Method Summary | |
|---|---|
protected void |
bindApplicationConfig(javax.ws.rs.core.Application applicationConfig)
this is called when a new app config arrives |
protected void |
bindComponent(java.lang.Object component)
Binds the specified JAXRS root-resource or provider. |
void |
handle(org.wymiwyg.wrhapi.Request origRequest,
org.wymiwyg.wrhapi.Response response)
|
protected void |
unbindApplicationConfig(javax.ws.rs.core.Application applicationConfig)
|
protected void |
unbindComponent(java.lang.Object component)
Unbinds the specified JAXRS component. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JaxRsHandler()
| Method Detail |
|---|
protected void bindComponent(java.lang.Object component)
component - The new JAXRS component to bind.protected void unbindComponent(java.lang.Object component)
component - The JAXRS component to unbind.protected void bindApplicationConfig(javax.ws.rs.core.Application applicationConfig)
applicationConfig - protected void unbindApplicationConfig(javax.ws.rs.core.Application applicationConfig)
public void handle(org.wymiwyg.wrhapi.Request origRequest,
org.wymiwyg.wrhapi.Response response)
throws org.wymiwyg.wrhapi.HandlerException
handle in interface org.wymiwyg.wrhapi.Handlerorg.wymiwyg.wrhapi.HandlerException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||