Search in sources :

Example 1 with BaseBackendResource

use of org.ovirt.engine.api.restapi.resource.BaseBackendResource in project ovirt-engine by oVirt.

the class V3Server method setHttpHeaders.

// We need to have the HTTP headers injected, as we need to manually inject into the V4 implementation of the
// service.
@Context
public void setHttpHeaders(HttpHeaders httpHeaders) {
    if (delegate instanceof BaseBackendResource) {
        BaseBackendResource resource = (BaseBackendResource) delegate;
        resource.setHttpHeaders(httpHeaders);
    }
}
Also used : BaseBackendResource(org.ovirt.engine.api.restapi.resource.BaseBackendResource) Context(javax.ws.rs.core.Context)

Example 2 with BaseBackendResource

use of org.ovirt.engine.api.restapi.resource.BaseBackendResource in project ovirt-engine by oVirt.

the class V3Server method setUriInfo.

// We need to have the URI info object injected, as we need to manually inject into the V4 implementation of
// the service.
@Context
public void setUriInfo(UriInfo uriInfo) {
    if (delegate instanceof BaseBackendResource) {
        BaseBackendResource resource = (BaseBackendResource) delegate;
        resource.setUriInfo(uriInfo);
    }
}
Also used : BaseBackendResource(org.ovirt.engine.api.restapi.resource.BaseBackendResource) Context(javax.ws.rs.core.Context)

Aggregations

Context (javax.ws.rs.core.Context)2 BaseBackendResource (org.ovirt.engine.api.restapi.resource.BaseBackendResource)2