本文整理汇总了Java中org.apache.axis2.description.AxisServiceGroup.getServiceGroupName方法的典型用法代码示例。如果您正苦于以下问题:Java AxisServiceGroup.getServiceGroupName方法的具体用法?Java AxisServiceGroup.getServiceGroupName怎么用?Java AxisServiceGroup.getServiceGroupName使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.apache.axis2.description.AxisServiceGroup
的用法示例。
在下文中一共展示了AxisServiceGroup.getServiceGroupName方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: removeServiceGroupContext
import org.apache.axis2.description.AxisServiceGroup; //导入方法依赖的package包/类
/**
* Removes the given ServiceGroup from the ServiceGroup context
*
* @param serviceGroup the AxisServiceGroup to remove
*/
public void removeServiceGroupContext(AxisServiceGroup serviceGroup) {
if (serviceGroup == null) return;
String groupName = serviceGroup.getServiceGroupName();
Object obj = applicationSessionServiceGroupContexts.get(groupName);
if (obj != null) {
applicationSessionServiceGroupContexts.remove(serviceGroup.getServiceGroupName());
return;
}
ArrayList<String> toBeRemovedList = new ArrayList<String>();
Iterator<ServiceGroupContext> serviceGroupContexts = serviceGroupContextMap.values().iterator();
while (serviceGroupContexts.hasNext()) {
ServiceGroupContext serviceGroupContext =serviceGroupContexts.next();
if (serviceGroupContext.getDescription().equals(serviceGroup)) {
toBeRemovedList.add(serviceGroupContext.getId());
}
}
for (Object aToBeRemovedList : toBeRemovedList) {
String s = (String)aToBeRemovedList;
serviceGroupContextMap.remove(s);
}
}
示例2: FaultyServiceData
import org.apache.axis2.description.AxisServiceGroup; //导入方法依赖的package包/类
public FaultyServiceData(AxisServiceGroup serviceGroup,
ArrayList serviceList,
URL serviceLocation,
DeploymentFileData currentDeploymentFile) {
serviceGroupName = serviceGroup.getServiceGroupName();
this.serviceGroup = serviceGroup;
this.serviceList = serviceList;
this.currentDeploymentFile = currentDeploymentFile;
this.serviceLocation = serviceLocation;
}
示例3: getServiceGroupMapKey
import org.apache.axis2.description.AxisServiceGroup; //导入方法依赖的package包/类
private static String getServiceGroupMapKey(AxisServiceGroup serviceGroup) {
return serviceGroup.getServiceGroupName() + "$#sg";
}
示例4: findServiceGroup
import org.apache.axis2.description.AxisServiceGroup; //导入方法依赖的package包/类
/**
* Find the AxisServiceGroup object that matches the criteria
* <p/>
* <B>Note<B> the saved service group meta information may not
* match up with any of the serviceGroups that
* are in the current AxisConfiguration object.
*
* @param axisConfig The AxisConfiguration object
* @param serviceGrpClassName the class name string for the target object
* (could be a derived class)
* @param serviceGrpName the name associated with the service group
* @return the AxisServiceGroup object that matches the criteria
*/
public static AxisServiceGroup findServiceGroup(AxisConfiguration axisConfig,
String serviceGrpClassName,
String serviceGrpName) {
Iterator its = axisConfig.getServiceGroups();
while (its.hasNext()) {
AxisServiceGroup checkServiceGroup = (AxisServiceGroup) its.next();
String tmpSGClassName = checkServiceGroup.getClass().getName();
String tmpSGName = checkServiceGroup.getServiceGroupName();
if (tmpSGClassName.equals(serviceGrpClassName)) {
boolean found = false;
// the serviceGroupName can be null, so either both the
// service group names are null or they match
if ((tmpSGName == null) && (serviceGrpName == null)) {
found = true;
} else if ((tmpSGName != null) && (tmpSGName.equals(serviceGrpName))) {
found = true;
} else if (containsExternalizedAxisServiceName(checkServiceGroup, serviceGrpName)) {
found = true;
}
if (found) {
// trace point
if (log.isTraceEnabled()) {
log.trace("ObjectStateUtils:findServiceGroup(): returning ["
+ serviceGrpClassName + "] [" + serviceGrpName + "]");
}
return checkServiceGroup;
}
}
}
// trace point
if (log.isTraceEnabled()) {
log.trace("ObjectStateUtils:findServiceGroup(): [" + serviceGrpClassName + "] ["
+ serviceGrpName + "] returning [null]");
}
return null;
}