org.apache.commons.feedparser.network
Class HTTPClientNetworkResource

java.lang.Object
  extended by org.apache.commons.feedparser.network.BaseResourceRequest
      extended by org.apache.commons.feedparser.network.HTTPClientNetworkResource
All Implemented Interfaces:
ResourceRequest

public class HTTPClientNetworkResource
extends BaseResourceRequest
implements ResourceRequest

This is an exprimental ResourceRequest which used Jakarta HttpClient as the backend. Current its only meant for use in development as its not as reliable and stable as the URLResourceRequest. Most of this code isn't as functional as the URLResourceRequest including correct timeout behavior, redirect limits, header and etag support, etc.

Version:
$Id: HTTPClientNetworkResource.java 373622 2006-01-30 22:53:00Z mvdb $
Author:
Kevin A. Burton

Field Summary
static int TIMEOUT
           
 
Fields inherited from class org.apache.commons.feedparser.network.BaseResourceRequest
FOLLOW_REDIRECTS
 
Constructor Summary
HTTPClientNetworkResource()
           
 
Method Summary
 InputStream getInputStream()
          Get an input stream for this content.
 void init()
          Create a new URLNetworkResource instance.
 
Methods inherited from class org.apache.commons.feedparser.network.BaseResourceRequest
fireDataEvent, fireDataEvent, fireInit, fireOnClosed, getContentLength, getEtag, getFollowRedirects, getHeaderField, getIfModifiedSince, getInputStreamAsByteArray, getInputStreamAsString, getLocalInputStream, getLocalInputStreamAsByteArray, getRequestHeaderField, getRequestHeaderFields, getResource, getResourceFromRedirect, getResponseCode, setEtag, setEventListener, setFollowRedirects, setIfModifiedSince, setLocalCache, setRequestHeaderField, setRequestMethod, setResource, setResponseCode, toOutputStream
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.commons.feedparser.network.ResourceRequest
getContentLength, getEtag, getFollowRedirects, getHeaderField, getIfModifiedSince, getInputStreamAsByteArray, getInputStreamAsString, getLocalInputStream, getLocalInputStreamAsByteArray, getRequestHeaderField, getRequestHeaderFields, getResource, getResourceFromRedirect, getResponseCode, setEtag, setEventListener, setFollowRedirects, setIfModifiedSince, setLocalCache, setRequestHeaderField, setRequestMethod, setResource, setResponseCode, toOutputStream
 

Field Detail

TIMEOUT

public static final int TIMEOUT
See Also:
Constant Field Values
Constructor Detail

HTTPClientNetworkResource

public HTTPClientNetworkResource()
Method Detail

init

public void init()
          throws NetworkException
Create a new URLNetworkResource instance.

Specified by:
init in interface ResourceRequest
Throws:
NetworkException

getInputStream

public InputStream getInputStream()
                           throws IOException
Description copied from interface: ResourceRequest
Get an input stream for this content.

Specified by:
getInputStream in interface ResourceRequest
Throws:
IOException


Copyright © 2001-2010 The Apache Software Foundation. All Rights Reserved.