本文整理了Java中com.sun.enterprise.deployment.WebServiceEndpoint.getEndpointAddressUri()
方法的一些代码示例,展示了WebServiceEndpoint.getEndpointAddressUri()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。WebServiceEndpoint.getEndpointAddressUri()
方法的具体详情如下:
包路径:com.sun.enterprise.deployment.WebServiceEndpoint
类名称:WebServiceEndpoint
方法名:getEndpointAddressUri
暂无
代码示例来源:origin: org.glassfish.webservices/jsr109-impl
public String getEndpointAddressUri() {
return endpoint.getEndpointAddressUri();
}
代码示例来源:origin: org.glassfish.webservices/jsr109-impl
public void addEndpoint( ServletAdapter adapter) {
if (module != null) {
module.addEndpoint(endpoint.getEndpointAddressUri(),
adapter);
}
}
代码示例来源:origin: org.glassfish.deployment/dol
public Node writeDescriptor(Node parent, WebServiceEndpoint descriptor) {
String ctxtPath;
String serviceUri;
String endpointAddressUri = descriptor.getEndpointAddressUri();
if (descriptor.implementedByEjbComponent()) {
ctxtPath = endpointAddressUri.substring(0, endpointAddressUri.lastIndexOf("/") - 1);
serviceUri = endpointAddressUri.substring(endpointAddressUri.lastIndexOf("/"));
} else {
//for servlet endpoint, use web application context root
ctxtPath = descriptor.getWebComponentImpl().getWebBundleDescriptor().getContextRoot();
serviceUri = endpointAddressUri;
}
Document doc = getOwnerDocument(parent);
Element serviceEndpointAddress = doc.createElement(WLWebServicesTagNames.SERVICE_ENDPOINT_ADDRESS);
Element ctxtPathEl = doc.createElement(WLWebServicesTagNames.WEBSERVICE_CONTEXTPATH);
ctxtPathEl.appendChild(doc.createTextNode(ctxtPath));
serviceEndpointAddress.appendChild(ctxtPathEl);
Element serviceuriEl = doc.createElement(WLWebServicesTagNames.WEBSERVICE_SERVICEURI);
serviceuriEl.appendChild(doc.createTextNode(serviceUri));
serviceEndpointAddress.appendChild(serviceuriEl);
parent.appendChild(serviceEndpointAddress);
return serviceEndpointAddress;
}
代码示例来源:origin: org.glassfish.main.deployment/dol
public Node writeDescriptor(Node parent, WebServiceEndpoint descriptor) {
String ctxtPath;
String serviceUri;
String endpointAddressUri = descriptor.getEndpointAddressUri();
if (descriptor.implementedByEjbComponent()) {
ctxtPath = endpointAddressUri.substring(0, endpointAddressUri.lastIndexOf("/") - 1);
serviceUri = endpointAddressUri.substring(endpointAddressUri.lastIndexOf("/"));
} else {
//for servlet endpoint, use web application context root
ctxtPath = descriptor.getWebComponentImpl().getWebBundleDescriptor().getContextRoot();
serviceUri = endpointAddressUri;
}
Document doc = getOwnerDocument(parent);
Element serviceEndpointAddress = doc.createElement(WLWebServicesTagNames.SERVICE_ENDPOINT_ADDRESS);
Element ctxtPathEl = doc.createElement(WLWebServicesTagNames.WEBSERVICE_CONTEXTPATH);
ctxtPathEl.appendChild(doc.createTextNode(ctxtPath));
serviceEndpointAddress.appendChild(ctxtPathEl);
Element serviceuriEl = doc.createElement(WLWebServicesTagNames.WEBSERVICE_SERVICEURI);
serviceuriEl.appendChild(doc.createTextNode(serviceUri));
serviceEndpointAddress.appendChild(serviceuriEl);
parent.appendChild(serviceEndpointAddress);
return serviceEndpointAddress;
}
代码示例来源:origin: org.glassfish.web/web-glue
void configureWebServices(WebBundleDescriptor wbd) {
if (wbd.hasWebServices()) {
setHasWebServices(true);
// creates the list of endpoint addresses
String[] endpointAddresses;
WebServicesDescriptor webService = wbd.getWebServices();
Vector<String> endpointList = new Vector<String>();
for(WebServiceEndpoint wse : webService.getEndpoints()) {
if(wbd.getContextRoot() != null) {
endpointList.add(wbd.getContextRoot() + "/" +
wse.getEndpointAddressUri());
} else {
endpointList.add(wse.getEndpointAddressUri());
}
}
endpointAddresses = new String[endpointList.size()];
endpointList.copyInto(endpointAddresses);
setEndpointAddresses(endpointAddresses);
} else {
setHasWebServices(false);
}
}
代码示例来源:origin: org.glassfish.main.deployment/dol
return getEndpointAddressUri();
代码示例来源:origin: org.glassfish.webservices/jsr109-impl
if( endpoint.getEndpointAddressUri() == null ) {
Set urlPatterns = webComp.getUrlPatternsSet();
if( urlPatterns.size() == 1 ) {
代码示例来源:origin: org.glassfish.webservices/jsr109-impl
String message = "Received HTTP GET containing text/xml " +
" content for endpoint " + endpoint.getEndpointName() +
" at " + endpoint.getEndpointAddressUri() +
" . HTTP POST should be used instead.";
代码示例来源:origin: org.glassfish.webservices/jsr109-impl
String uri = endpoint.getEndpointAddressUri();
urlPattern = uri.startsWith("/") ? uri : "/" + uri;
代码示例来源:origin: org.glassfish.deployment/dol
if( getEndpointAddressUri() == null ) {
Set urlPatterns = webComponentImpl.getUrlPatternsSet();
if( urlPatterns.size() == 1 ) {
代码示例来源:origin: org.glassfish.main.deployment/dol
if( getEndpointAddressUri() == null ) {
Set urlPatterns = webComponentImpl.getUrlPatternsSet();
if( urlPatterns.size() == 1 ) {
代码示例来源:origin: org.glassfish.ejb/ejb-container
if( isWebServiceEndpoint && (webServiceEndpoint != null) ) {
String endpointAddress =
webServiceEndpoint.getEndpointAddressUri();
if (wsejbEndpointRegistry != null) {
wsejbEndpointRegistry.unregisterEndpoint(endpointAddress);
代码示例来源:origin: org.glassfish.webservices/jsr109-impl
private void collectEjbEndpoints(BundleDescriptor bundleDesc) {
WebServicesDescriptor wsDesc = bundleDesc.getWebServices();
for (WebService ws : wsDesc.getWebServices()) {
for (WebServiceEndpoint endpoint : ws.getEndpoints()) {
//Only add for ejb based endpoints
if (endpoint.implementedByEjbComponent()) {
ejbendpoints.add(new EjbEndpoint(endpoint.getEndpointAddressUri(), endpoint.isSecure()));
}
}
}
//For ejb webservices in war we need to get the extension descriptors
//from the WebBundleDescriptor and process those too
//http://monaco.sfbay/detail.jsf?cr=6956406
for (EjbBundleDescriptor ejbD : bundleDesc.getExtensionsDescriptors(EjbBundleDescriptor.class)) {
collectEjbEndpoints(ejbD);
}
}
public boolean stop(ApplicationContext stopContext) {
代码示例来源:origin: org.glassfish.main.ejb/ejb-container
if( isWebServiceEndpoint && (webServiceEndpoint != null) ) {
String endpointAddress =
webServiceEndpoint.getEndpointAddressUri();
if (wsejbEndpointRegistry != null) {
wsejbEndpointRegistry.unregisterEndpoint(endpointAddress);
代码示例来源:origin: org.glassfish.webservices/jsr109-impl
private EndpointImpl createEndpointInfo(WebServiceEndpoint endpoint) {
try {
String endpointURL = endpoint.getEndpointAddressUri();
EndpointType endpointType;
XModuleType moduleType = endpoint.getWebService().getWebServicesDescriptor().getModuleType();
if (XModuleType.EJB == moduleType) {
endpointType = EndpointType.EJB_ENDPOINT;
} else {
endpointType = EndpointType.SERVLET_ENDPOINT;
}
EndpointImpl newEndpoint;
// At this point, we can depend on presence of mapping file to distinguish between JAXRPC and JAXWS
// service
if(endpoint.getWebService().hasMappingFile()) {
newEndpoint = new JAXRPCEndpointImpl(endpointURL, endpointType);
} else {
newEndpoint = new JAXWSEndpointImpl(endpointURL, endpointType);
}
newEndpoint.setDescriptor(endpoint);
return newEndpoint;
} catch(Exception e) {
sLogger.log(Level.SEVERE,"Exception in creating endpoint", e);
}
return null;
}
代码示例来源:origin: org.glassfish.webservices/jsr109-impl
String endpointAddressUri = next.getEndpointAddressUri();
if( endpointAddressUri == null ) {
String msg = "Endpoint address uri must be set for endpoint " +
代码示例来源:origin: org.glassfish.webservices/jsr109-impl
String uri = endpoint_.getEndpointAddressUri();
uri = uri.startsWith("/") ? uri : "/" + uri;
endpointInfo.setUrlPattern(uri);
代码示例来源:origin: org.glassfish.webservices/jsr109-impl
String uri = endpoint.getEndpointAddressUri();
String urlPattern = uri.startsWith("/") ? uri : "/" + uri;
代码示例来源:origin: org.glassfish.deployment/dol
endpoint.getEndpointName());
appendTextChild(endpointNode, WebServicesTagNames.ENDPOINT_ADDRESS_URI,
endpoint.getEndpointAddressUri());
代码示例来源:origin: org.glassfish.main.deployment/dol
endpoint.getEndpointName());
appendTextChild(endpointNode, WebServicesTagNames.ENDPOINT_ADDRESS_URI,
endpoint.getEndpointAddressUri());
内容来源于网络,如有侵权,请联系作者删除!