当前位置: 首页>>代码示例>>Java>>正文


Java ServerProperties.FEATURE_AUTO_DISCOVERY_DISABLE属性代码示例

本文整理汇总了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);
}
 
开发者ID:opensecuritycontroller,项目名称:osc-core,代码行数:27,代码来源:ApiServletDelegate.java


注:本文中的org.glassfish.jersey.server.ServerProperties.FEATURE_AUTO_DISCOVERY_DISABLE属性示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。