Package com.webobjects.appserver._private

Examples of com.webobjects.appserver._private.WOConstantValueAssociation


        if(_action != null) {
          invokedElement = (WOActionResults) _action.valueInComponent(component);
        }

      } else {
        invokedElement = new WONoContentElement();
      }
      if (invokedElement == null) {
        invokedElement = aContext.page();
      }
    }
View Full Code Here


          } else {
            throw new WOPageNotFoundException(new StringBuilder().append('<').append(getClass().getName()).append("> : cannot find page.").toString());
          }
        }
      } else {
        invokedElement = new WONoContentElement();
      }
      if(invokedElement == null) {
        invokedElement = context.page();
      }
    }
View Full Code Here

        WOResourceManager resources = WOApplication.application().resourceManager();

        // pay no attention to this use of protected API
        WODeployedBundle appBundle = resources._appProjectBundle();
        if (appBundle instanceof WOProjectBundle) {
            WOProjectBundle project = (WOProjectBundle) appBundle;
            _WOProject woproject = project._woProject();
            String filePath = woproject._pathToSourceFileForClass(fullClassName, filename);
            if (filePath == null) {
               
                // inform user file not found?
            } else {
View Full Code Here

    WOAssociation association;
    if (keyPath.charAt(0) == '^') {
      association = new WOHelperFunctionBindingNameAssociation(keyPath);
    }
    else if (_keyPathIsReadOnly(keyPath)) {
      association = new WOReadOnlyKeyValueAssociation(keyPath);
    }
    else {
      association = new WOHelperFunctionKeyValueAssociation(keyPath);
    }
    return association;
View Full Code Here

      if (isUsingWebServer()) {
        // Check our host name keys in our preferred order instead of Apple WO 5.4.3 default header check logic.
        serverName = remoteHostName();

        if ((serverName == null) || (serverName.length() == 0) || serverName.equals(UNKNOWN_HOST))
          throw new NSForwardException(new WOURLFormatException("<" + super.getClass().getName() + ">: Unable to build complete url as no server name was provided in the headers of the request."));
      }
      else {
        serverName = WOApplication.application().host();
      }
    }
View Full Code Here

           if("background-image".equals(key)) {
             if (value instanceof NSData) {
               NSData data = (NSData) value;
               WOResourceManager rm = WOApplication.application().resourceManager();
               String mimeType = (String) (_mimeType != null ? _mimeType.valueInComponent(component) : "image/jpeg");
               WOURLValuedElementData uve = new WOURLValuedElementData(data, mimeType, null);
               rm._cacheData(uve);
               stringValue = uve.dataURL(wocontext);
             } else {
               stringValue = value.toString();
             }
             if(stringValue.indexOf("url(") < 0) {
               stringValue = "url(" + stringValue + ")";
View Full Code Here

    }
    return url;
  }

  private WOURLValuedElementData cachedDataForKey(String key) {
    WOURLValuedElementData data = _urlValuedElementsData.objectForKey(key);
    if (data == null && key != null && key.startsWith("file:") && ERXApplication.isDevelopmentModeSafe()) {
      data = cacheDataIfNotInCache(key);
    }
    return data;
  }
View Full Code Here

    }
    return data;
  }

  protected WOURLValuedElementData cacheDataIfNotInCache(String key) {
    WOURLValuedElementData data = _urlValuedElementsData.objectForKey(key);
    if (data == null) {
      String contentType = contentTypeForResourceNamed(key);
      data = new WOURLValuedElementData(null, contentType, key);
      _urlValuedElementsData.setObjectForKey(data, key);
    }
    return data;
  }
View Full Code Here

    return data;
  }

  @Override
  public WOURLValuedElementData _cachedDataForKey(String key) {
    WOURLValuedElementData wourlvaluedelementdata = null;
    if (key != null) {
      wourlvaluedelementdata = cachedDataForKey(key);
    }
    return wourlvaluedelementdata;
  }
View Full Code Here

    return super.createReplacedElement(context, box, callback, cssWidth, cssHeight);
  }

  private NSData cachedDataForKey(String key) {
    WOResourceManager resourceManager =  WOApplication.application().resourceManager();
    WOURLValuedElementData elementData = resourceManager._cachedDataForKey(key);
    if (elementData.isTemporary()) {
      resourceManager.removeDataForKey(key, null);
    }
    return elementData.data();
  }
View Full Code Here

TOP

Related Classes of com.webobjects.appserver._private.WOConstantValueAssociation

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.