Examples of Protocol


Examples of org.apache.axis2.jaxws.message.Protocol

                  }
                }
                //Need to make sure the protocol (envelope ns)  of the request matches the binding
                // expected by the service description
                if (!ignoreSOAPVersion && !Utils.bindingTypesMatch(request, endpointDesc)) {
                  Protocol protocol = request.getMessage().getProtocol();
                  MessageContext faultContext = Utils.createVersionMismatchMessage(request, protocol);
                  eic.setResponseMessageContext(faultContext);
                  return false;
                }
               
View Full Code Here

Examples of org.apache.commons.httpclient.protocol.Protocol

        // to see the host is a proxy and in the proxy list - available in axis2.xml
        HostConfiguration config = new HostConfiguration();

        // one might need to set his own socket factory. Let's allow that case as well.
        Protocol protocolHandler =
                (Protocol)msgCtx.getOptions().getProperty(HTTPConstants.CUSTOM_PROTOCOL_HANDLER);

        // setting the real host configuration
        // I assume the 90% case, or even 99% case will be no protocol handler case.
        if (protocolHandler == null) {
View Full Code Here

Examples of org.apache.commons.httpclient.protocol.Protocol

   
    public void testProxy() throws MalformedURLException, XFireFault
    {
        Echo echo = (Echo) new XFireProxyFactory().create(service, "https://localhost:8443/Echo");

        Protocol protocol = new Protocol("https", (ProtocolSocketFactory) new EasySSLProtocolSocketFactory(), 8443);
        Protocol.registerProtocol("https", protocol);
       
        Element root = new Element("root", "a", "urn:a");
        root.addContent("hello");
       
View Full Code Here

Examples of org.apache.commons.httpclient.protocol.Protocol

    boolean allowSelfSignedCertificate = config.getValueAsBooleanOptional(
        Constants.CHAPTER_SYSTEM, mDestination.getName(),
        "AllowSelfSignedCertificate");
    if (allowSelfSignedCertificate)
    {
      Protocol.registerProtocol("https", new Protocol("https",
          new EasySSLProtocolSocketFactory(), 8443));
    }

    PostMethod method = new PostMethod(url);
View Full Code Here

Examples of org.apache.commons.httpclient.protocol.Protocol

  private synchronized void initSSLProtocol() {
    if (fgSSLInitialized)
      return;

    /* Register Easy Protocol Socket Factory with HTTPS */
    Protocol easyHttpsProtocol = new Protocol("https", (ProtocolSocketFactory) Owl.getConnectionService().getSecureProtocolSocketFactory(), 443); //$NON-NLS-1$
    Protocol.registerProtocol("https", easyHttpsProtocol); //$NON-NLS-1$

    fgSSLInitialized = true;
  }
View Full Code Here

Examples of org.apache.commons.httpclient.protocol.Protocol

  private synchronized void initFeedProtocol() {
    if (fgFeedProtocolInitialized)
      return;

    Protocol feed = new Protocol("feed", new DefaultProtocolSocketFactory(), 80); //$NON-NLS-1$
    Protocol.registerProtocol("feed", feed); //$NON-NLS-1$

    fgFeedProtocolInitialized = true;
  }
View Full Code Here

Examples of org.apache.commons.httpclient.protocol.Protocol

  private void initSSLProtocol() {
    if (fgSSLInitialized)
      return;

    /* Register Easy Protocol Socket Factory with HTTPS */
    Protocol easyHttpsProtocol = new Protocol("https", (ProtocolSocketFactory) Owl.getConnectionService().getSecureProtocolSocketFactory(), 443); //$NON-NLS-1$
    Protocol.registerProtocol("https", easyHttpsProtocol); //$NON-NLS-1$

    fgSSLInitialized = true;
  }
View Full Code Here

Examples of org.apache.commons.httpclient.protocol.Protocol

         
          // Request content will be retrieved directly
          // from the input stream
          post.setRequestEntity(entity);
         
          Protocol easyhttps = new Protocol("https", (ProtocolSocketFactory)new EasySSLProtocolSocketFactory(), 443);
          Protocol.registerProtocol("https", easyhttps);

         
          // Get HTTP client
          HttpClient httpclient = new HttpClient();
View Full Code Here

Examples of org.apache.commons.httpclient.protocol.Protocol

     */
    public static void setup(){
        final String LOOPBACK = "loopback"; // $NON-NLS-1$

        // This ensures tha HttpClient knows about the protocol
        Protocol.registerProtocol(LOOPBACK, new Protocol(LOOPBACK,new LoopbackHttpClientSocketFactory(),1));

        // Now allow the URL handling to work.
        URLStreamHandlerFactory ushf = new URLStreamHandlerFactory(){
            public URLStreamHandler createURLStreamHandler(String protocol) {
                if (protocol.equalsIgnoreCase(LOOPBACK)){
View Full Code Here

Examples of org.apache.commons.httpclient.protocol.Protocol

        if (PROTOCOL_HTTPS.equalsIgnoreCase(schema)){
            SSLManager.getInstance(); // ensure the manager is initialised
            // we don't currently need to do anything further, as this sets the default https protocol
        }

        Protocol protocol = Protocol.getProtocol(schema);

        String host = uri.getHost();
        int port = uri.getPort();

        /*
 
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.