Examples of Prop


Examples of com.github.sardine.model.Prop

    @Override
    public List<DavResource> list(String url, int depth, java.util.Set<QName> props) throws IOException
    {
        Propfind body = new Propfind();
        Prop prop = new Prop();
        ObjectFactory objectFactory = new ObjectFactory();
        prop.setGetcontentlength(objectFactory.createGetcontentlength());
        prop.setGetlastmodified(objectFactory.createGetlastmodified());
        prop.setCreationdate(objectFactory.createCreationdate());
        prop.setDisplayname(objectFactory.createDisplayname());
        prop.setGetcontenttype(objectFactory.createGetcontenttype());
        prop.setResourcetype(objectFactory.createResourcetype());
        prop.setGetetag(objectFactory.createGetetag());
        List<Element> any = prop.getAny();
        for (QName entry : props) {
            Element element = SardineUtil.createElement(entry);
            any.add(element);
        }
        body.setProp(prop);
View Full Code Here

Examples of com.github.sardine.model.Prop

    Propertyupdate body = new Propertyupdate();
    // Add properties
    {
      Set set = new Set();
      body.getRemoveOrSet().add(set);
      Prop prop = new Prop();
      // Returns a reference to the live list
      List<Element> any = prop.getAny();
      for (Map.Entry<QName, String> entry : setProps.entrySet())
      {
        Element element = SardineUtil.createElement(entry.getKey());
        element.setTextContent(entry.getValue());
        any.add(element);
      }
      set.setProp(prop);
    }
    // Remove properties
    {
      Remove remove = new Remove();
      body.getRemoveOrSet().add(remove);
      Prop prop = new Prop();
      // Returns a reference to the live list
      List<Element> any = prop.getAny();
      for (QName entry : removeProps)
      {
        Element element = SardineUtil.createElement(entry);
        any.add(element);
      }
View Full Code Here

Examples of com.github.sardine.model.Prop

  public DavAcl getAcl(String url) throws IOException
  {
    HttpPropFind entity = new HttpPropFind(url);
    entity.setDepth("0");
    Propfind body = new Propfind();
    Prop prop = new Prop();
    prop.setOwner(new Owner());
    prop.setGroup(new Group());
    prop.setAcl(new Acl());
    body.setProp(prop);
    entity.setEntity(new StringEntity(SardineUtil.toXml(body), UTF_8));
    Multistatus multistatus = this.execute(entity, new MultiStatusResponseHandler());
    List<Response> responses = multistatus.getResponse();
    if (responses.isEmpty())
View Full Code Here

Examples of com.github.sardine.model.Prop

  public DavQuota getQuota(String url) throws IOException
  {
    HttpPropFind entity = new HttpPropFind(url);
    entity.setDepth("0");
    Propfind body = new Propfind();
    Prop prop = new Prop();
    prop.setQuotaAvailableBytes(new QuotaAvailableBytes());
    prop.setQuotaUsedBytes(new QuotaUsedBytes());
    body.setProp(prop);
    entity.setEntity(new StringEntity(SardineUtil.toXml(body), UTF_8));
    Multistatus multistatus = this.execute(entity, new MultiStatusResponseHandler());
    List<Response> responses = multistatus.getResponse();
    if (responses.isEmpty())
View Full Code Here

Examples of com.googlecode.sardine.model.Prop

   * @throws java.io.IOException When there is a JAXB error
   */
  protected String getToken(InputStream stream)
      throws IOException
  {
    Prop prop = SardineUtil.unmarshal(stream);
    return prop.getLockdiscovery().getActivelock().iterator().next().getLocktoken().getHref().iterator().next();
  }
View Full Code Here

Examples of com.jfinal.kit.Prop

    prop = PropKit.use(file, encoding);
    return prop.getProperties();
  }
 
  public void unloadPropertyFile(String fileName) {
    Prop uselessProp = PropKit.useless(fileName);
    if (this.prop == uselessProp)
      this.prop = null;
  }
View Full Code Here

Examples of jfun.yan.xml.nuts.Prop

* @author Ben Yu
* Dec 16, 2005 3:37:44 PM
*/
public class InjectorAspectNut extends AspectjNut {
  public void setInjection(Component inj){
    final Prop prop = new Prop();
    prop.initGloballyDefined(this.isGloballyDefined());
    prop.initNutEnvironment(this.getNutEnvironment());
    prop.initSequenceNumber(0);
    prop.initTagLocation(this.getTagLocation());
    prop.initTagName("injection");
    prop.setKey("injection");       
    prop.setVal(InjectionUtils.toInjection(inj));
    super.addProp(prop);
  }
View Full Code Here

Examples of net.sourceforge.processdash.hier.Prop

        out.println("history.back();");
        out.println("</SCRIPT></HEAD><BODY></BODY></HTML>");
    }

    public static Map getTemplates() {
        Prop templates = dash.templates.pget(PropertyKey.ROOT);
        TreeMap result = new TreeMap();
        for (int i = templates.getNumChildren();   i-- > 0; ) {
            PropertyKey childKey = templates.getChild(i);
            Prop child = dash.templates.pget(childKey);
            result.put(child.getID(), Prop.unqualifiedName(childKey.name()));
        }
        return result;
    }
View Full Code Here

Examples of net.sourceforge.processdash.hier.Prop

        }
    }

    private static void getDataAndDefectFilesInUse(Set<String> filesInUse,
            PropertyKey node) {
        Prop p = dash.getHierarchy().pget(node);
        filesInUse.add(lower(p.getDataFile()));
        filesInUse.add(lower(p.getDefectLog()));
        for (int i = dash.getHierarchy().getNumChildren(node);  i-- > 0; ) {
            PropertyKey child = dash.getHierarchy().getChildKey(node, i);
            getDataAndDefectFilesInUse(filesInUse, child);
        }
    }
View Full Code Here

Examples of net.sourceforge.processdash.hier.Prop

            return;

        for (Iterator i = TEMPLATES.entrySet().iterator(); i.hasNext();) {
            Map.Entry e = (Map.Entry) i.next();
            PropertyKey key = (PropertyKey) e.getKey();
            Prop prop = (Prop) e.getValue();
            if (PROCESS_PHASE_STATUS.equals(prop.getStatus())) {
                String phaseName = Prop.unqualifiedName(key.name());
                m.addSafeName(phaseName);
            }
        }
    }
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.