use of com.linkedin.restli.server.config.RestLiMethodConfigBuilder in project rest.li by linkedin.
the class TestAlwaysProjectedFieldsOnServer method initClass.
@BeforeClass
public void initClass() throws Exception {
RestLiConfig config = new RestLiConfig();
config.setMethodConfig(new RestLiMethodConfigBuilder().addAlwaysProjectedFields("*.*", "id,tone").addAlwaysProjectedFields("*.FINDER-*", "id,tone,total").build());
super.init(false, config);
}
use of com.linkedin.restli.server.config.RestLiMethodConfigBuilder in project rest.li by linkedin.
the class RestLiConfig method setValidateResourceKeys.
/**
* Sets whether or not to enable resource key validation.
*/
public void setValidateResourceKeys(boolean validateResourceKeys) {
_validateResourceKeys = validateResourceKeys;
setMethodConfig(new RestLiMethodConfigBuilder(getMethodConfig()).withShouldValidateResourceKeys(_validateResourceKeys).build());
}
Aggregations