Package org.eclipse.wst.server.core.util

Examples of org.eclipse.wst.server.core.util.WebResource


    IModule[] modules = ServerUtil.getModules(project);
    if (modules == null || modules.length == 0) {
      return null;
    }
    return new WebResource(modules[0], Path.EMPTY);
  }
View Full Code Here


                            url = new URL(url, path);
                        } else {
                            url = new URL(url, "servlet/" + servlet.getServletClassName()); //$NON-NLS-1$
                        }
                    } else if (moduleObject instanceof WebResource) {
                        WebResource resource = (WebResource) moduleObject;
                        String path = resource.getPath().toString();
                        if (path != null && path.startsWith("/") && path.length() > 0) { //$NON-NLS-1$
                            path = path.substring(1);
                        }
                        if (path != null && path.length() > 0) {
                            url = new URL(url, path);
View Full Code Here

          url = new URL(url, path);
        } else
          url = new URL(url, "servlet/"
              + servlet.getServletClassName());
      } else if (moduleObject instanceof WebResource) {
        WebResource resource = (WebResource) moduleObject;
        String path = resource.getPath().toString();
        if (path != null && path.startsWith("/") && path.length() > 0)
          path = path.substring(1);
        if (path != null && path.length() > 0)
          url = new URL(url, path);
      }
View Full Code Here

TOP

Related Classes of org.eclipse.wst.server.core.util.WebResource

Copyright © 2018 www.massapicom. 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.