Examples of ServerData


Examples of org.apache.turbine.util.ServerData

     * WEBAPP/resources/ui/skins/<SKIN> directory with the
     * filename skin.css
     */
    public String getStylecss()
    {
        ServerData sd = Turbine.getDefaultServerData();
        DataURI du = new DataURI(sd);

        StringBuffer sb = new StringBuffer();

        sb.append(resourcesDirectory).
View Full Code Here

Examples of org.apache.turbine.util.ServerData

        // Set the servlet configuration.
        data.setServletConfig(config);

        // Set the ServerData.
        data.setServerData(new ServerData(req));

        return data;
    }
View Full Code Here

Examples of org.apache.turbine.util.ServerData

    {
        if(serverData == null)
        {
            log.error("ServerData Information requested from Turbine before first request!");
            // Will be overwritten once the first request is run;
            serverData = new ServerData(null, URIConstants.HTTP_PORT,
                    URIConstants.HTTP, null, null);
        }
        return serverData;
    }
View Full Code Here

Examples of org.apache.turbine.util.ServerData

    /**
     * Performs any initialization that must happen before each test is run.
     */
    protected void setUp()
    {
        ServerData sd = new ServerData("www.testserver.com",
                URIConstants.HTTP_PORT, URIConstants.HTTP,
                "/servlet/turbine", "/context");
        turi = new TurbineURI(sd);
    }
View Full Code Here

Examples of org.apache.turbine.util.ServerData

    /**
     * Performs any initialization that must happen before each test is run.
     */
    protected void setUp()
    {
        ServerData sd = new ServerData("www.testserver.com",
                URIConstants.HTTP_PORT, URIConstants.HTTP, "/servlet/turbine",
                "/context");
        turi = new TurbineURI(sd);

        parserService = (ParserService)TurbineServices.getInstance().getService(ParserService.ROLE);
View Full Code Here

Examples of org.apache.turbine.util.ServerData

        catch (Exception x)
        {
            contextPath = "";
        }
        String scriptName = contextPath + req.getServletPath();
        data.setServerData(new ServerData(req.getServerName(),
                                          req.getServerPort(),
                                          req.getScheme(),
                                          scriptName,
                                          contextPath));
View Full Code Here

Examples of org.cloudfoundry.ide.eclipse.server.core.internal.ModuleCache.ServerData

        status = CloudFoundryPlugin
            .getErrorStatus(Messages.CloudFoundryApplicationWizardPage_ERROR_INVALID_CHAR);
      }
      else {
        ModuleCache moduleCache = CloudFoundryPlugin.getModuleCache();
        ServerData data = moduleCache.getData(server.getServerOriginal());
        Collection<CloudFoundryApplicationModule> applications = data.getExistingCloudModules();
        boolean duplicate = false;

        for (CloudFoundryApplicationModule application : applications) {
          if (application != module && application.getDeployedApplicationName().equals(appName)) {
            duplicate = true;
View Full Code Here

Examples of org.cloudfoundry.ide.eclipse.server.core.internal.ModuleCache.ServerData

    return Status.OK_STATUS;
  }

  public void clearApplications() {
    ServerData data = getData();
    if (data != null) {
      data.clear();
    }
  }
View Full Code Here

Examples of org.fusesource.camel.component.sap.model.rfc.ServerData

            deleteEntryCommand = DeleteCommand.create(editingDomain, Collections.singletonList(eObject));
            if (eObject instanceof DestinationDataStoreEntryImpl) {
              DestinationData destinationData = ((DestinationDataStoreEntryImpl)eObject).getValue();
              removeValueCommand = RemoveCommand.create(editingDomain, destinationData.eContainer(), RfcPackage.Literals.DESTINATION_DATA_STORE__DESTINATION_DATA, Collections.singletonList(destinationData));
            } else if (eObject instanceof ServerDataStoreEntryImpl) {
              ServerData serverData = ((ServerDataStoreEntryImpl)eObject).getValue();
              removeValueCommand = RemoveCommand.create(editingDomain, serverData.eContainer(), RfcPackage.Literals.SERVER_DATA_STORE__SERVER_DATA, Collections.singletonList(serverData));
            }
            if (canDelete(selection)) {
              command = new CompoundCommand();
              command.append(deleteEntryCommand);
              command.append(removeValueCommand);
View Full Code Here

Examples of org.fusesource.camel.component.sap.model.rfc.ServerData

  @Override
  public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) {
    if (itemPropertyDescriptors == null) {
      itemPropertyDescriptors = new ArrayList<IItemPropertyDescriptor>();

      ServerData serverData = RfcFactory.eINSTANCE.createServerData();
      ServerDataItemProvider serverDataItemProvider = (ServerDataItemProvider) getRootAdapterFactory().adapt(serverData, IItemPropertySource.class);
      List<IItemPropertyDescriptor> descriptors = serverDataItemProvider.getPropertyDescriptors(object);
      for (IItemPropertyDescriptor descriptor : descriptors) {
        itemPropertyDescriptors.add(new DelegatingItemPropertyDescriptor(descriptor, RfcPackage.Literals.SERVER_DATA_STORE_ENTRY__VALUE));
      }
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.