org.apache.s4.deploy
Class HttpS4RFetcher

java.lang.Object
  extended by org.apache.s4.deploy.HttpS4RFetcher
All Implemented Interfaces:
S4RFetcher

public class HttpS4RFetcher
extends java.lang.Object
implements S4RFetcher

Fetches S4R archive through HTTP.

The underlying implementation uses Netty, and borrows code from the Netty snoop example.

See Also:
Netty snoop example


Constructor Summary
HttpS4RFetcher()
           
 
Method Summary
 java.io.InputStream fetch(java.net.URI uri)
          Returns a stream to an S4R archive file
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HttpS4RFetcher

public HttpS4RFetcher()
Method Detail

fetch

public java.io.InputStream fetch(java.net.URI uri)
                          throws DeploymentFailedException
Description copied from interface: S4RFetcher
Returns a stream to an S4R archive file

Specified by:
fetch in interface S4RFetcher
Parameters:
uri - S4R archive identifier
Returns:
an input stream for accessing the content of the S4R file
Throws:
DeploymentFailedException - when fetching fails