本文整理了Java中com.sun.enterprise.deployment.WebServiceEndpoint.getProtocolBinding()
方法的一些代码示例,展示了WebServiceEndpoint.getProtocolBinding()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。WebServiceEndpoint.getProtocolBinding()
方法的具体详情如下:
包路径:com.sun.enterprise.deployment.WebServiceEndpoint
类名称:WebServiceEndpoint
方法名:getProtocolBinding
暂无
代码示例来源:origin: org.glassfish.webservices/jsr109-impl
public void init(WebServiceEndpoint ep){
endpoint = ep;
isHttpBinding =
((HTTPBinding.HTTP_BINDING.equals
(endpoint.getProtocolBinding())) ? true : false);
}
代码示例来源:origin: org.glassfish.webservices/jsr109-impl
public boolean getMtom(WebServiceEndpoint ep) {
String currentBinding = ep.getProtocolBinding();
if((ep.getMtomEnabled() == null) &&
(SOAPBinding.SOAP11HTTP_MTOM_BINDING.equals(currentBinding) ||
SOAPBinding.SOAP12HTTP_MTOM_BINDING.equals(currentBinding))) {
return true;
}
if((new Boolean(ep.getMtomEnabled())).booleanValue() &&
(SOAPBinding.SOAP11HTTP_BINDING.equals(currentBinding) ||
SOAPBinding.SOAP12HTTP_BINDING.equals(currentBinding) ||
SOAPBinding.SOAP11HTTP_MTOM_BINDING.equals(currentBinding) ||
SOAPBinding.SOAP12HTTP_MTOM_BINDING.equals(currentBinding))) {
return true;
}
return false;
}
代码示例来源:origin: org.glassfish.webservices/jsr109-impl
if (!(HTTPBinding.HTTP_BINDING.equals(endpoint.getProtocolBinding()))) {
代码示例来源:origin: org.glassfish.webservices/jsr109-impl
protected void doPost(HttpServletRequest request,
HttpServletResponse response)
throws ServletException {
startedEvent(endpoint.getEndpointAddressPath());
if (("Tester".equalsIgnoreCase(request.getQueryString())) &&
(!(HTTPBinding.HTTP_BINDING.equals(endpoint.getProtocolBinding())))) {
Endpoint endpt = wsEngine_.getEndpoint(request.getServletPath());
if (endpt != null && Boolean.parseBoolean(endpt.getDescriptor().getDebugging())) {
WebServiceTesterServlet.invoke(request, response,
endpt.getDescriptor());
endedEvent(endpoint.getEndpointAddressPath());
return;
}
}
// lookup registered URLs and get the appropriate adapter;
// pass control to the adapter
try {
ServletAdapter targetEndpoint = (ServletAdapter) getEndpointFor(request);
if (targetEndpoint != null) {
targetEndpoint.handle(getServletContext(), request, response);
} else {
throw new ServletException("Service not found");
}
} catch (Throwable t) {
ServletException se = new ServletException();
se.initCause(t);
throw se;
}
endedEvent(endpoint.getEndpointAddressPath());
}
代码示例来源:origin: org.glassfish.webservices/jsr109-impl
private void handleGet(HttpServletRequest req,
HttpServletResponse resp,
ServletContext ctxt,
EjbRuntimeEndpointInfo endpointInfo)
throws IOException {
AdapterInvocationInfo adapterInfo = null;
ServletAdapter adapter;
try {
adapterInfo =
(AdapterInvocationInfo) endpointInfo.prepareInvocation(true);
adapter = adapterInfo.getAdapter();
if (adapter != null) {
adapter.publishWSDL(ctxt, req, resp);
} else {
String message = "Invalid wsdl request " + req.getRequestURL();
(new WsUtil()).writeInvalidMethodType(resp, message);
}
} catch (Throwable e) {
String errorMessage = "invocation error on ejb endpoint " +
endpointInfo.getEndpoint().getEndpointName() + " at " +
endpointInfo.getEndpointAddressUri() + " : " + e.getMessage();
logger.log(Level.WARNING, errorMessage, e);
String binding = endpointInfo.getEndpoint().getProtocolBinding();
WsUtil.raiseException(resp, binding, errorMessage);
}
}
}
代码示例来源:origin: org.glassfish.webservices/jsr109-impl
throws ServletException, IOException {
if (("Tester".equalsIgnoreCase(request.getQueryString())) &&
(!(HTTPBinding.HTTP_BINDING.equals(endpoint.getProtocolBinding())))) {
(HTTPBinding.HTTP_BINDING.equals(endpoint.getProtocolBinding()))) {
doPost(request, response);
return;
代码示例来源:origin: org.glassfish.webservices/jsr109-impl
endpointInfo.getEndpointAddressUri() + " : " + e.getMessage();
logger.log(Level.WARNING, errorMessage, e);
String binding = endpointInfo.getEndpoint().getProtocolBinding();
WsUtil.raiseException(resp, binding, errorMessage);
代码示例来源:origin: org.glassfish.webservices/jsr109-impl
if("http://www.w3.org/2004/08/wsdl/http".equals(endpoint.getProtocolBinding())) {
return next.process(request);
代码示例来源:origin: org.glassfish.webservices/jsr109-impl
String givenBinding = endpoint.getProtocolBinding();
代码示例来源:origin: org.glassfish.webservices/jsr109-impl
String givenBinding = endpoint.getProtocolBinding();
endpoint.getProtocolBinding(), binding);
代码示例来源:origin: org.glassfish.main.webservices/webservices-connector
appendTextChild(wseNode,
WebServicesTagNames.PROTOCOL_BINDING,
descriptor.getProtocolBinding());
代码示例来源:origin: org.glassfish.deployment/dol
appendTextChild(wseNode,
WebServicesTagNames.PROTOCOL_BINDING,
descriptor.getProtocolBinding());
内容来源于网络,如有侵权,请联系作者删除!