本文整理汇总了Java中org.glassfish.jersey.server.ServerProperties.FEATURE_AUTO_DISCOVERY_DISABLE属性的典型用法代码示例。如果您正苦于以下问题:Java ServerProperties.FEATURE_AUTO_DISCOVERY_DISABLE属性的具体用法?Java ServerProperties.FEATURE_AUTO_DISCOVERY_DISABLE怎么用?Java ServerProperties.FEATURE_AUTO_DISCOVERY_DISABLE使用的例子?那么, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在类org.glassfish.jersey.server.ServerProperties
的用法示例。
在下文中一共展示了ServerProperties.FEATURE_AUTO_DISCOVERY_DISABLE属性的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: activate
@Activate
void activate() throws Exception {
super.register(JacksonJaxbJsonProvider.class);
super.property(ServerProperties.FEATURE_AUTO_DISCOVERY_DISABLE, true);
Properties props = new Properties();
props.setProperty(JDBC_URL, "jdbc:h2:./ismPlugin");
props.setProperty(JDBC_USER, "admin");
props.setProperty(JDBC_PASSWORD, "abc12345");
DataSource ds = this.jdbcFactory.createDataSource(props);
this.em = this.resourceFactory
.getProviderFor(this.builder, singletonMap("javax.persistence.nonJtaDataSource", (Object) ds), null)
.getResource(this.txControl);
this.domainApis.init(this.em, this.txControl);
this.deviceApis.init(this.em, this.txControl);
this.securityGroupApis.init(this.em, this.txControl);
this.securityGroupInterfaceApis.init(this.em, this.txControl);
super.registerInstances(this.domainApis, this.deviceApis, this.securityGroupApis,
this.securityGroupInterfaceApis);
this.container = new ServletContainer(this);
}
开发者ID:opensecuritycontroller,项目名称:security-mgr-sample-plugin,代码行数:26,代码来源:SecurityManagerServletDelegate.java
示例2: activate
@Activate
void activate() throws Exception {
super.register(JacksonJaxbJsonProvider.class);
super.property(ServerProperties.FEATURE_AUTO_DISCOVERY_DISABLE, true);
super.registerInstances(this.inspectionPortApis, this.portApis, this.inspectionHookApis);
this.container = new ServletContainer(this);
}
开发者ID:opensecuritycontroller,项目名称:sdn-controller-nsc-plugin,代码行数:8,代码来源:SampleSdnServletDelegate.java
示例3: activate
@Activate
void activate() {
//Json feature
super.register(JacksonJaxbJsonProvider.class);
//Auth Filters
super.registerInstances(this.oscAuthFilter, this.localHostAuthFilter);
//Exception mappers
super.register(BadRequestExceptionMapper.class);
super.register(InternalServerErrorExceptionMapper.class);
super.register(JsonProcessingExceptionMapper.class);
super.register(NotFoundExceptionMapper.class);
super.register(PathParamExceptionMapper.class);
super.register(XMLParseExceptionMapper.class);
//Properties
super.property(ServerProperties.FEATURE_AUTO_DISCOVERY_DISABLE, true);
// agent & server apis
super.registerInstances(this.alarmApis, this.alertApis, this.applianceApis, this.distributedApplianceApis,
this.distributedApplianceInstanceApis, this.jobApis, this.managerApis, this.managerConnectorApis,
this.nsmMgrApis, this.serverDebugApis, this.serverMgmtApis, this.virtualSystemApis,
this.virtualizationConnectorApis);
this.container = new ServletContainer(this);
}