Examples of URLStreamHandlerFactory


Examples of java.net.URLStreamHandlerFactory

        if (container.getResources() == null) {
            log.info("No resources for " + container);
            return;
        }
        // Register a stream handler factory for the JNDI protocol
        URLStreamHandlerFactory streamHandlerFactory =
            new DirContextURLStreamHandlerFactory();
        if (first) {
            first = false;
            try {
                URL.setURLStreamHandlerFactory(streamHandlerFactory);
View Full Code Here

Examples of java.net.URLStreamHandlerFactory

    /**
     * GBean constructor (invoked dynamically when the gbean is declared in a plan)
     */
    public TomcatContainer(ClassLoader classLoader, String catalinaHome, ObjectRetriever engineGBean, ServerInfo serverInfo, String objectName, WebManager manager) {
        // Register a stream handler factory for the JNDI protocol
        URLStreamHandlerFactory streamHandlerFactory =
            new DirContextURLStreamHandlerFactory();
        if (first) {
            first = false;
            try {
                URL.setURLStreamHandlerFactory(streamHandlerFactory);
View Full Code Here

Examples of java.net.URLStreamHandlerFactory

    /**
     * GBean constructor (invoked dynamically when the gbean is declared in a plan)
     */
    public TomcatContainer(ClassLoader classLoader, String catalinaHome, ObjectRetriever engineGBean, ServerInfo serverInfo, String objectName, WebManager manager) {
        // Register a stream handler factory for the JNDI protocol
        URLStreamHandlerFactory streamHandlerFactory =
            new DirContextURLStreamHandlerFactory();
        if (first) {
            first = false;
            try {
                URL.setURLStreamHandlerFactory(streamHandlerFactory);
View Full Code Here

Examples of java.net.URLStreamHandlerFactory

        // 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)){
                    return new URLStreamHandler(){
                        @Override
                        protected URLConnection openConnection(URL u) throws IOException {
View Full Code Here

Examples of java.net.URLStreamHandlerFactory

                "     <transportConnector uri=\"tcp://0.0.0.0:0\" discoveryUri=\"multicast://default\" />" +
                "   </transportConnectors>" +
                "  </broker>" +
                "</beans>");
        final String localProtocolScheme = "inline";
        URL.setURLStreamHandlerFactory(new URLStreamHandlerFactory() {
            @Override
            public URLStreamHandler createURLStreamHandler(String protocol) {
                if (localProtocolScheme.equalsIgnoreCase(protocol)) {
                    return new URLStreamHandler() {
                        @Override
View Full Code Here

Examples of org.jboss.net.protocol.URLStreamHandlerFactory

         // This bit was copied from the legacy AbstractServerImpl
         try
         {
            // Install a URLStreamHandlerFactory that uses the TCL
            URL.setURLStreamHandlerFactory(new URLStreamHandlerFactory());

            // Preload JBoss URL handlers
            URLStreamHandlerFactory.preload();
         }
         catch (final Error e)
View Full Code Here

Examples of org.jboss.net.protocol.URLStreamHandlerFactory

   public synchronized static void init()
   {
      if (done)
         return;
      done = true;
      URL.setURLStreamHandlerFactory(new URLStreamHandlerFactory());
      URLStreamHandlerFactory.preload();
      String handlerPkgs = System.getProperty("java.protocol.handler.pkgs");
      if (handlerPkgs != null)
         handlerPkgs += "|org.jboss.net.protocol";
      else
View Full Code Here

Examples of org.jboss.net.protocol.URLStreamHandlerFactory

   public synchronized static void init()
   {
      if (done)
         return;
      done = true;
      URL.setURLStreamHandlerFactory(new URLStreamHandlerFactory());
      URLStreamHandlerFactory.preload();
      String handlerPkgs = System.getProperty("java.protocol.handler.pkgs");
      if (handlerPkgs != null)
         handlerPkgs += "|org.jboss.net.protocol";
      else
View Full Code Here

Examples of org.jboss.net.protocol.URLStreamHandlerFactory

      String[] protocolPkgs = {
              "org.apache.naming.resources"
      };
      JavaProtocolHandlerPkgs.setupHandlerPkgs(protocolPkgs);
      URL.setURLStreamHandlerFactory(new URLStreamHandlerFactory());
      try
      {
         Bootstrap.getInstance().bootstrap();
         InitialContext ctx = new InitialContext();
         ENCFactory.rebindComp(ctx);
View Full Code Here

Examples of org.jboss.net.protocol.URLStreamHandlerFactory

   public synchronized static void init()
   {
      if (done)
         return;
      done = true;
      URL.setURLStreamHandlerFactory(new URLStreamHandlerFactory());
      URLStreamHandlerFactory.preload();
      String handlerPkgs = System.getProperty("java.protocol.handler.pkgs");
      if (handlerPkgs != null)
         handlerPkgs += "|org.jboss.net.protocol";
      else
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.