use of org.apache.qpid.server.management.plugin.ManagementController in project qpid-broker-j by apache.
the class RestServlet method doDelete.
@Override
protected void doDelete(final HttpServletRequest httpServletRequest, final HttpServletResponse httpServletResponse, final ConfiguredObject<?> managedObject) throws IOException {
try {
final ManagementRequest request = new ServletManagementRequest(managedObject, httpServletRequest);
final ManagementController controller = getManagementController();
final ManagementResponse response = controller.handleDelete(request);
sendResponse(request, response, httpServletRequest, httpServletResponse, controller);
} catch (ManagementException e) {
sendResponse(e, httpServletRequest, httpServletResponse);
}
}
use of org.apache.qpid.server.management.plugin.ManagementController in project qpid-broker-j by apache.
the class RestServlet method doPut.
@Override
protected void doPut(final HttpServletRequest httpServletRequest, final HttpServletResponse httpServletResponse, final ConfiguredObject<?> managedObject) throws IOException {
try {
final ManagementRequest request = new ServletManagementRequest(managedObject, httpServletRequest);
final ManagementController controller = getManagementController();
final ManagementResponse response = controller.handlePut(request);
sendResponse(request, response, httpServletRequest, httpServletResponse, controller);
} catch (ManagementException e) {
sendResponse(e, httpServletRequest, httpServletResponse);
}
}
use of org.apache.qpid.server.management.plugin.ManagementController in project qpid-broker-j by apache.
the class RestServlet method doGet.
@Override
protected void doGet(final HttpServletRequest httpServletRequest, final HttpServletResponse httpServletResponse, final ConfiguredObject<?> managedObject) throws IOException {
try {
final ManagementRequest request = new ServletManagementRequest(managedObject, httpServletRequest);
final ManagementController controller = getManagementController();
final ManagementResponse response = controller.handleGet(request);
sendResponse(request, response, httpServletRequest, httpServletResponse, controller);
} catch (ManagementException e) {
sendResponse(e, httpServletRequest, httpServletResponse);
}
}
use of org.apache.qpid.server.management.plugin.ManagementController in project qpid-broker-j by apache.
the class ExchangeControllerTest method setUp.
@Before
public void setUp() {
_legacyManagementController = mock(LegacyManagementController.class);
final ManagementController nextVersionManagementController = mock(ManagementController.class);
when(_legacyManagementController.getNextVersionManagementController()).thenReturn(nextVersionManagementController);
}
use of org.apache.qpid.server.management.plugin.ManagementController in project qpid-broker-j by apache.
the class LegacyManagementControllerTest method setUp.
@Before
public void setUp() {
final ManagementController nextVersionManagementController = mock(ManagementController.class);
_controller = new LegacyManagementController(nextVersionManagementController, LegacyManagementControllerFactory.MODEL_VERSION);
_controller.initialize();
}
Aggregations