Package org.graylog2.restclient.models

Examples of org.graylog2.restclient.models.Extractor.create()


                return badRequest();
            }

            extractor.loadConfigFromForm(extractorType, form);
            extractor.loadConvertersFromForm(form);
            extractor.create(node, node.getInput(inputId));
        } catch (IOException e) {
            return status(500, views.html.errors.error.render(ApiClient.ERROR_MSG_IO, e, request()));
        } catch (APIException e) {
            String message = "Could not create extractor! We expected HTTP 200, but got a HTTP " + e.getHttpCode() + ".";
            return status(500, views.html.errors.error.render(message, e, request()));
View Full Code Here


                );

                extractor.loadConfigFromImport(type, importRequest.extractorConfig);
                extractor.loadConvertersFromImport(importRequest.converters);
                extractor.setOrder(importRequest.order);
                extractor.create(node, node.getInput(inputId));
            } catch (Exception e) {
                Logger.error("Could not import extractor. Continuing.", e);
                continue;
            }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.