Search in sources :

Example 1 with RestconfService

use of org.opendaylight.netconf.sal.rest.api.RestconfService in project netconf by opendaylight.

the class MediaTypesTest method configure.

@Override
protected Application configure() {
    /* enable/disable Jersey logs to console */
    // enable(TestProperties.LOG_TRAFFIC);
    // enable(TestProperties.DUMP_ENTITY);
    // enable(TestProperties.RECORD_LOG_LEVEL);
    // set(TestProperties.RECORD_LOG_LEVEL, Level.ALL.intValue());'
    restconfService = mock(RestconfService.class);
    ResourceConfig resourceConfig = new ResourceConfig();
    resourceConfig = resourceConfig.registerInstances(restconfService, new NormalizedNodeJsonBodyWriter(), new NormalizedNodeXmlBodyWriter());
    return resourceConfig;
}
Also used : NormalizedNodeXmlBodyWriter(org.opendaylight.netconf.sal.rest.impl.NormalizedNodeXmlBodyWriter) NormalizedNodeJsonBodyWriter(org.opendaylight.netconf.sal.rest.impl.NormalizedNodeJsonBodyWriter) RestconfService(org.opendaylight.netconf.sal.rest.api.RestconfService) ResourceConfig(org.glassfish.jersey.server.ResourceConfig)

Aggregations

ResourceConfig (org.glassfish.jersey.server.ResourceConfig)1 RestconfService (org.opendaylight.netconf.sal.rest.api.RestconfService)1 NormalizedNodeJsonBodyWriter (org.opendaylight.netconf.sal.rest.impl.NormalizedNodeJsonBodyWriter)1 NormalizedNodeXmlBodyWriter (org.opendaylight.netconf.sal.rest.impl.NormalizedNodeXmlBodyWriter)1