org.sca4j.host.contribution
Interface ContributionSource

All Known Implementing Classes:
DefaultContributionSource, JarContributionSource

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
 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.lang.String getType()
          Returns the type of the contribution.
 

Method Detail

getSource

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

Returns:
Input stream to the contribution source.
Throws:
java.io.IOException - If a stream cannot be open.

getLocation

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

Returns:
The contribution URL.

getTimestamp

long getTimestamp()
Returns the source timestamp.

Returns:
Timestamp of the contribution.

getType

java.lang.String getType()
Returns the type of the contribution.

Returns:
Type of the contribution.


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