Nuxeo ECM Projects 5.4.3-SNAPSHOT

org.nuxeo.runtime.model.persistence.fs
Class ContributionLocation

java.lang.Object
  extended by org.nuxeo.runtime.model.persistence.AbstractContribution
      extended by org.nuxeo.runtime.model.persistence.fs.ContributionLocation
All Implemented Interfaces:
Contribution, StreamRef

public class ContributionLocation
extends AbstractContribution


Constructor Summary
ContributionLocation(String name, URL location)
           
 
Method Summary
 URL asURL()
          Get an URL to that stream.
 String getContent()
          Gets the contribution XML content.
 InputStream getStream()
          Gets the contribution XML content.
 
Methods inherited from class org.nuxeo.runtime.model.persistence.AbstractContribution
getDescription, getId, getName, isDisabled, setDescription, setDisabled
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContributionLocation

public ContributionLocation(String name,
                            URL location)
Method Detail

getStream

public InputStream getStream()
Description copied from interface: Contribution
Gets the contribution XML content. The content should be in Nuxeo XML component format.

Returns:

getContent

public String getContent()
Description copied from interface: Contribution
Gets the contribution XML content. The content should be in Nuxeo XML component format.


asURL

public URL asURL()
Description copied from interface: StreamRef
Get an URL to that stream. May return null if no URL is available.

Returns:

Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.