Examples of IWebHost


Examples of com.subgraph.vega.api.model.web.IWebHost

    return webAdapter.getLabel(element);
  }
 
  public Image getImage(Object element) {
    if(element instanceof IWebHost) {
      IWebHost wh = (IWebHost) element;
      if(wh.isVisited())
        return imageCache.get(WEBSITE);
      else
        return imageCache.getDisabled(WEBSITE);
    } else {
      final String mimeType = getMimeTypeForElement(element);
View Full Code Here

Examples of com.subgraph.vega.api.model.web.IWebHost

  @Override
  public synchronized IWebPath getWebPathByUri(VegaURI uri) {
    final HttpHost host = uri.getTargetHost();
    if (host != null) {
      IWebHost wh = getWebHostByHttpHost(host);
      if(wh == null) {
        wh = createWebHostFromHttpHost(host);
      }
      return wh.addPath(uri.getPath());
    } else {
      return null;
    }
  }
View Full Code Here

Examples of com.subgraph.vega.api.model.web.IWebHost

  public void updateInjectionModules(List<IBasicModuleScript> injectionModules) {
    pathStateManager.setInjectionModules(injectionModules);
  }

  public IPathState processUri(VegaURI uri) {
    final IWebHost webHost = getWebHost(uri.getTargetHost());
    final IWebPath rootPath = webHost.getRootPath();
    IWebPath path = rootPath;
    final boolean hasTrailingSlash = uri.getPath().endsWith("/");

    String[] parts = uri.getPath().split("/");
    IWebPath childPath = null;
View Full Code Here

Examples of com.subgraph.vega.api.model.web.IWebHost

    }
    return pathStateManager.getStateForPath(path);
  }

  private IWebHost getWebHost(HttpHost host) {
    IWebHost webHost = null;
    synchronized(workspace) {
      final IWebModel webModel = workspace.getWebModel();
      webHost = webModel.getWebHostByHttpHost(host);
      if(webHost == null)
        webHost = webModel.createWebHostFromHttpHost(host);
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.