Search in sources :

Example 1 with RestApi

use of com.yahoo.vespa.model.container.jersey.RestApi in project vespa by vespa-engine.

the class RestApiBuilder method doBuild.

@Override
protected RestApi doBuild(AbstractConfigProducer ancestor, Element spec) {
    String bindingPath = spec.getAttribute("path");
    boolean jersey2 = Boolean.parseBoolean(getOptionalAttribute(spec, "jersey2").orElse("false"));
    RestApi restApi = new RestApi(bindingPath, jersey2);
    restApi.setRestApiContext(createRestApiContext(ancestor, spec, bindingPath));
    return restApi;
}
Also used : RestApi(com.yahoo.vespa.model.container.jersey.RestApi)

Example 2 with RestApi

use of com.yahoo.vespa.model.container.jersey.RestApi in project vespa by vespa-engine.

the class ContainerCluster method prepare.

public void prepare() {
    addAndSendApplicationBundles();
    sendUserConfiguredFiles();
    setApplicationMetaData();
    for (RestApi restApi : restApiGroup.getComponents()) restApi.prepare();
}
Also used : RestApi(com.yahoo.vespa.model.container.jersey.RestApi)

Aggregations

RestApi (com.yahoo.vespa.model.container.jersey.RestApi)2