- 使用 Spring Initializr 创建 Spring Boot 应用程序
- 在Spring Boot中配置Cassandra
- 在 Spring Boot 上配置 Tomcat 连接池
- 将Camel消息路由到嵌入WildFly的Artemis上
本文整理了Java中org.jboss.web.WebPermissionMapping
类的一些代码示例,展示了WebPermissionMapping
类的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。WebPermissionMapping
类的具体详情如下:
包路径:org.jboss.web.WebPermissionMapping
类名称:WebPermissionMapping
[英]A utility class encapsulating the logic for building the web container JACC permission from a deployment's metadata.
[中]一个实用程序类,封装了从部署的元数据构建web容器JACC权限的逻辑。
代码示例来源:origin: org.jboss.jbossas/jboss-as-server
@Override
protected void createPermissions(JBossWebMetaData metaData,
PolicyConfiguration policyConfiguration)
throws PolicyContextException
{
WebPermissionMapping.createPermissions(metaData, policyConfiguration);
}
}
代码示例来源:origin: org.jboss.jbossas/jboss-as-server
throws PolicyContextException
HashMap<String, PatternInfo> patternMap = qualifyURLPatterns(metaData);
log.debug("Qualified url patterns: "+patternMap);
String excludedString = "!" + getCommaSeparatedString(httpMethods);
WebResourcePermission wrp1 = new WebResourcePermission(info.pattern, excludedString);
WebUserDataPermission wudp1 = new WebUserDataPermission(info.pattern,excludedString);
final String methodsAsString = "!" + getCommaSeparatedString(httpMethods);
WebResourcePermission wrpUnchecked = null;
try
"!" + getCommaSeparatedString(httpMethods));
pc.addToUncheckedPolicy(wudpNonNull);
代码示例来源:origin: org.jboss.jbossas/jboss-as-server
int type = getPatternType(url);
PatternInfo info = (PatternInfo) patternMap.get(url);
if( info == null )
代码示例来源:origin: org.jboss.jbossas/jboss-as-server
@Override
protected void createPermissions(JBossWebMetaData metaData,
PolicyConfiguration policyConfiguration) throws PolicyContextException
{
WebPermissionMapping.createPermissions(metaData, policyConfiguration);
}
}
代码示例来源:origin: org.jboss.jbossas/jboss-as-server
WebPermissionMapping.createPermissions(wmd, policyConfiguration);
代码示例来源:origin: org.jboss.ws/jbossws-jboss500x
/**
* JBAS-5935: The dynamic web application generated by the JBossWS
* does not go through the war security deployer. Hence the JACC
* permissions are not created. There is a need to explicitly create
* the war jacc permissions.
* @param depName
* @param jbwmd
* @throws Exception
*/
protected void generateJACCPermissions(String depName, JBossWebMetaData jbwmd)
throws Exception
{
PolicyConfigurationFactory policyConfigurationFactory =
PolicyConfigurationFactory.getPolicyConfigurationFactory();
PolicyConfiguration policyConfiguration =
policyConfigurationFactory.getPolicyConfiguration(depName, false);
WebPermissionMapping.createPermissions(jbwmd, policyConfiguration);
policyConfiguration.commit();
}
}
代码示例来源:origin: org.jboss.ws/jbossws-jboss501CR1
/**
* JBAS-5935: The dynamic web application generated by the JBossWS
* does not go through the war security deployer. Hence the JACC
* permissions are not created. There is a need to explicitly create
* the war jacc permissions.
* @param depName
* @param jbwmd
* @throws Exception
*/
protected void generateJACCPermissions(String depName, JBossWebMetaData jbwmd)
throws Exception
{
PolicyConfigurationFactory policyConfigurationFactory =
PolicyConfigurationFactory.getPolicyConfigurationFactory();
PolicyConfiguration policyConfiguration =
policyConfigurationFactory.getPolicyConfiguration(depName, false);
WebPermissionMapping.createPermissions(jbwmd, policyConfiguration);
policyConfiguration.commit();
}
}
代码示例来源:origin: org.jboss.ws/jbossws-jboss510x
/**
* JBAS-5935: The dynamic web application generated by the JBossWS
* does not go through the war security deployer. Hence the JACC
* permissions are not created. There is a need to explicitly create
* the war jacc permissions.
* @param depName
* @param jbwmd
* @throws Exception
*/
protected void generateJACCPermissions(String depName, JBossWebMetaData jbwmd)
throws Exception
{
PolicyConfigurationFactory policyConfigurationFactory =
PolicyConfigurationFactory.getPolicyConfigurationFactory();
PolicyConfiguration policyConfiguration =
policyConfigurationFactory.getPolicyConfiguration(depName, false);
WebPermissionMapping.createPermissions(jbwmd, policyConfiguration);
policyConfiguration.commit();
}
}
代码示例来源:origin: org.jboss.ws/jbossws-jboss600x
/**
* JBAS-5935: The dynamic web application generated by the JBossWS
* does not go through the war security deployer. Hence the JACC
* permissions are not created. There is a need to explicitly create
* the war jacc permissions.
* @param depName
* @param jbwmd
* @throws Exception
*/
protected void generateJACCPermissions(String depName, JBossWebMetaData jbwmd)
throws Exception
{
PolicyConfigurationFactory policyConfigurationFactory =
PolicyConfigurationFactory.getPolicyConfigurationFactory();
PolicyConfiguration policyConfiguration =
policyConfigurationFactory.getPolicyConfiguration(depName, false);
WebPermissionMapping.createPermissions(jbwmd, policyConfiguration);
policyConfiguration.commit();
}
}
代码示例来源:origin: org.jboss.ws/jbossws-jboss510
/**
* JBAS-5935: The dynamic web application generated by the JBossWS
* does not go through the war security deployer. Hence the JACC
* permissions are not created. There is a need to explicitly create
* the war jacc permissions.
*
* @param dep webservice deployment
*/
@Override
public void start(final Deployment dep)
{
final JBossWebMetaData jbossWebMD = WSHelper.getRequiredAttachment(dep, JBossWebMetaData.class);
try
{
final PolicyConfigurationFactory policyConfigurationFactory = PolicyConfigurationFactory
.getPolicyConfigurationFactory();
final PolicyConfiguration policyConfiguration = policyConfigurationFactory.getPolicyConfiguration(dep
.getSimpleName(), false);
WebPermissionMapping.createPermissions(jbossWebMD, policyConfiguration);
policyConfiguration.commit();
}
catch (Exception e)
{
throw new RuntimeException("Exception generating JACC perms: ", e);
}
}
代码示例来源:origin: org.jboss.ws/jbossws-jboss600M2
/**
* JBAS-5935: The dynamic web application generated by the JBossWS
* does not go through the war security deployer. Hence the JACC
* permissions are not created. There is a need to explicitly create
* the war jacc permissions.
*
* @param dep webservice deployment
*/
@Override
public void start(final Deployment dep)
{
final JBossWebMetaData jbossWebMD = WSHelper.getRequiredAttachment(dep, JBossWebMetaData.class);
try
{
final PolicyConfigurationFactory policyConfigurationFactory = PolicyConfigurationFactory
.getPolicyConfigurationFactory();
final PolicyConfiguration policyConfiguration = policyConfigurationFactory.getPolicyConfiguration(dep
.getSimpleName(), false);
WebPermissionMapping.createPermissions(jbossWebMD, policyConfiguration);
policyConfiguration.commit();
}
catch (Exception e)
{
throw new RuntimeException("Exception generating JACC perms: ", e);
}
}
代码示例来源:origin: org.jboss.ws/jbossws-jboss501
/**
* JBAS-5935: The dynamic web application generated by the JBossWS
* does not go through the war security deployer. Hence the JACC
* permissions are not created. There is a need to explicitly create
* the war jacc permissions.
*
* @param dep webservice deployment
*/
@Override
public void start(final Deployment dep)
{
final JBossWebMetaData jbossWebMD = WSHelper.getRequiredAttachment(dep, JBossWebMetaData.class);
try
{
final PolicyConfigurationFactory policyConfigurationFactory = PolicyConfigurationFactory
.getPolicyConfigurationFactory();
final PolicyConfiguration policyConfiguration = policyConfigurationFactory.getPolicyConfiguration(dep
.getSimpleName(), false);
WebPermissionMapping.createPermissions(jbossWebMD, policyConfiguration);
policyConfiguration.commit();
}
catch (Exception e)
{
throw new RuntimeException("Exception generating JACC perms: ", e);
}
}
本文整理了Java中org.jboss.web.WebPermissionMapping.createPermissions()方法的一些代码示例,展示了WebPermissionMapping.cr
我是一名优秀的程序员,十分优秀!