com.sun.enterprise.deployment.WebServiceEndpoint.getProtocolBinding()方法的使用及代码示例

x33g5p2x  于2022-02-03 转载在 其他  
字(4.6k)|赞(0)|评价(0)|浏览(117)

本文整理了Java中com.sun.enterprise.deployment.WebServiceEndpoint.getProtocolBinding()方法的一些代码示例,展示了WebServiceEndpoint.getProtocolBinding()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。WebServiceEndpoint.getProtocolBinding()方法的具体详情如下:
包路径:com.sun.enterprise.deployment.WebServiceEndpoint
类名称:WebServiceEndpoint
方法名:getProtocolBinding

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());

相关文章

WebServiceEndpoint类方法