Methods Summary |
---|
public java.util.List | getManagedWebserviceApplicationIds()Returns a list of application or stand alone module ids
currently configured for web service management.
List aList = new ArrayList();
try {
ConfigContext ctx = ApplicationServer.getServerContext().
getConfigContext();
String serverName =
ApplicationServer.getServerContext().getInstanceName();
ApplicationRef[] appRefs =ServerHelper.getApplicationReferences(ctx,
serverName);
for ( int appIdx =0; appIdx < appRefs.length; appIdx++) {
String appName = appRefs[appIdx].getRef();
ConfigBean cb = ApplicationHelper.findApplication(ctx, appName);
// check if web service endpoint is configured for this
// application/module, then ruturn this app
int wsSize = 0;
if ( cb instanceof WebModule) {
wsSize = ( (WebModule) cb).sizeWebServiceEndpoint();
} else if ( cb instanceof EjbModule) {
wsSize = ( (EjbModule) cb).sizeWebServiceEndpoint();
} else if (cb instanceof J2eeApplication) {
wsSize = ( (J2eeApplication) cb).sizeWebServiceEndpoint();
}
if (wsSize > 0) { aList.add(appName); }
}
} catch (ConfigException ce) {
// XX throw exception
} finally {
return aList;
}
|
public java.lang.String | getProviderID()Returns the unique identifier for this RepositoryProvider object.
return ConfigFactory.CONFIG_DEFAULT_PROVIDER;
|
public com.sun.enterprise.admin.wsmgmt.config.spi.WebServiceConfig | getWebServiceConfig(java.lang.String appId, java.lang.String modId, boolean isStandalone, java.lang.String name)Returns the list of Web Service Endpoint config in this application
WebServiceEndpoint[] wsps = getWebServiceEndpoints(appId);
if (wsps != null) {
for (int idx =0; idx < wsps.length; idx++) {
String sName = null;
if ( isStandalone ) {
sName = name;
} else {
sName = modId + "#" + name;
}
if ( wsps[idx].getName().equals(sName) ) {
return new WebServiceConfigImpl(wsps[idx]);
}
}
}
return null;
|
public com.sun.enterprise.admin.wsmgmt.config.spi.WebServiceConfig | getWebServiceConfig(java.lang.String fqn)Returns the Web Service Endpoint config in this endpoint
if (fqn==null) return null;
String appId = null;
int sepIdx = fqn.indexOf("#");
appId = fqn.substring(0, sepIdx);
String partialName = fqn.substring(sepIdx +1);
WebServiceEndpoint[] wsps = getWebServiceEndpoints(appId);
for (int idx =0; idx < wsps.length; idx++) {
if ( wsps[idx].getName().equals(partialName) ) {
return new WebServiceConfigImpl(wsps[idx]);
}
}
return null;
|
com.sun.enterprise.config.serverbeans.WebServiceEndpoint[] | getWebServiceEndpoints(java.lang.String appId)
WebServiceEndpoint[] wsps = null;
try {
ConfigContext ctx = ApplicationServer.getServerContext().
getConfigContext();
ConfigBean cb = ApplicationHelper.findApplication(ctx, appId);
// check if web service endpoint is configured for this
// application/module, then ruturn this app
if ( cb instanceof WebModule) {
wsps = ( (WebModule) cb).getWebServiceEndpoint();
} else if ( cb instanceof EjbModule) {
wsps = ( (EjbModule) cb).getWebServiceEndpoint();
} else if (cb instanceof J2eeApplication) {
wsps = ( (J2eeApplication) cb).getWebServiceEndpoint();
}
} catch (ConfigException ce) {
// XX throw exception
} finally {
return wsps;
}
|
public com.sun.enterprise.admin.wsmgmt.config.spi.WebServiceConfig[] | getWebserviceConfigs(java.lang.String appId)Returns the list of Web Service Endpoint config in this application
WebServiceEndpoint[] wsps = getWebServiceEndpoints(appId);
WebServiceConfig[] wsCfgs = new WebServiceConfig[wsps.length];
for (int idx =0; idx < wsps.length; idx++) {
wsCfgs[idx] = new WebServiceConfigImpl(wsps[idx]);
}
return wsCfgs;
|