org.sca4j.host.contribution
Interface ContributionSource

All Known Implementing Classes:
FileContributionSource

public interface ContributionSource

Represents a source artifact that will be contributed to a domain or an updated version of an existing contribution.

Version:
$Rev: 3536 $ $Date: 2008-04-01 23:03:05 +0100 (Tue, 01 Apr 2008) $

Method Summary
 byte[] getChecksum()
          Returns the source checksum.
 java.lang.String getContentType()
          Returns the content type of the source
 java.net.URL getLocation()
          If the source is local, returns the source URL
 java.io.InputStream getSource()
          Returns a input stream for the source.
 long getTimestamp()
          Returns the source timestamp.
 java.net.URI getUri()
          Returns the identifier for this contribution or null if one has not been assigned (i.e.
 

Method Detail

getUri

java.net.URI getUri()
Returns the identifier for this contribution or null if one has not been assigned (i.e. it is a new contribution and not an update).

Returns:
the identifier for this contribution

getSource

java.io.InputStream getSource()
                              throws java.io.IOException
Returns a input stream for the source.

Returns:
a input stream for the source
Throws:
java.io.IOException - if an error occurs returning the stream

getLocation

java.net.URL getLocation()
If the source is local, returns the source URL

Returns:
the source URL

getTimestamp

long getTimestamp()
Returns the source timestamp.

Returns:
the source timestamp

getChecksum

byte[] getChecksum()
Returns the source checksum.

Returns:
the source checksum

getContentType

java.lang.String getContentType()
Returns the content type of the source

Returns:


Copyright © 2008-2010 Service Symphony. All Rights Reserved.