org.seasar.robot.client.http
クラス CommonsHttpClient

java.lang.Object
  上位を拡張 org.seasar.robot.client.AbstractS2RobotClient
      上位を拡張 org.seasar.robot.client.http.CommonsHttpClient
すべての実装されたインタフェース:
S2RobotClient

public class CommonsHttpClient
extends AbstractS2RobotClient

作成者:
shinsuke

フィールドの概要
static String BASIC_AUTHENTICATIONS_PROPERTY
           
static String CONNECTION_TIMEOUT_PROPERTY
           
 Integer connectionTimeout
           
protected  ContentLengthHelper contentLengthHelper
           
 String cookiePolicy
           
 String defaultMimeType
           
protected  org.apache.commons.httpclient.HttpClient httpClient
           
 Integer linger
           
static String LINGER_PROPERTY
           
static String MAX_TOTAL_CONNECTIONS_PROPERTY
           
 Integer maxTotalConnections
           
static String PROXY_CREDENTIALS_PROPERTY
           
static String PROXY_HOST_PROPERTY
           
static String PROXY_PORT_PROPERTY
           
 org.apache.commons.httpclient.Credentials proxyCredentials
           
 String proxyHost
           
 Integer proxyPort
           
static String REQUERT_HEADERS_PROPERTY
           
 int responseBodyInMemoryThresholdSize
           
protected  RobotsTxtHelper robotsTxtHelper
           
static String SO_TIMEOUT_PROPERTY
           
 Integer soTimeout
           
static String STALE_CHECKING_ENABLED_PROPERTY
           
 Boolean staleCheckingEnabled
           
static String USER_AGENT_PROPERTY
           
 String userAgent
           
 
コンストラクタの概要
CommonsHttpClient()
           
 
メソッドの概要
protected  String convertRobotsTxtPathPattern(String path)
           
 ResponseData doGet(String url)
           
 ResponseData doHead(String url)
           
 ResponseData doHttpMethod(String url, org.apache.commons.httpclient.HttpMethod httpMethod)
           
 void init()
           
protected  Date parseLastModified(String value)
           
protected  void processRobotsTxt(String url)
           
 
クラス org.seasar.robot.client.AbstractS2RobotClient から継承されたメソッド
getInitParameter, setInitParameterMap
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

フィールドの詳細

CONNECTION_TIMEOUT_PROPERTY

public static final String CONNECTION_TIMEOUT_PROPERTY
関連項目:
定数フィールド値

MAX_TOTAL_CONNECTIONS_PROPERTY

public static final String MAX_TOTAL_CONNECTIONS_PROPERTY
関連項目:
定数フィールド値

STALE_CHECKING_ENABLED_PROPERTY

public static final String STALE_CHECKING_ENABLED_PROPERTY
関連項目:
定数フィールド値

SO_TIMEOUT_PROPERTY

public static final String SO_TIMEOUT_PROPERTY
関連項目:
定数フィールド値

LINGER_PROPERTY

public static final String LINGER_PROPERTY
関連項目:
定数フィールド値

PROXY_HOST_PROPERTY

public static final String PROXY_HOST_PROPERTY
関連項目:
定数フィールド値

PROXY_PORT_PROPERTY

public static final String PROXY_PORT_PROPERTY
関連項目:
定数フィールド値

PROXY_CREDENTIALS_PROPERTY

public static final String PROXY_CREDENTIALS_PROPERTY
関連項目:
定数フィールド値

USER_AGENT_PROPERTY

public static final String USER_AGENT_PROPERTY
関連項目:
定数フィールド値

BASIC_AUTHENTICATIONS_PROPERTY

public static final String BASIC_AUTHENTICATIONS_PROPERTY
関連項目:
定数フィールド値

REQUERT_HEADERS_PROPERTY

public static final String REQUERT_HEADERS_PROPERTY
関連項目:
定数フィールド値

robotsTxtHelper

protected RobotsTxtHelper robotsTxtHelper

contentLengthHelper

protected ContentLengthHelper contentLengthHelper

connectionTimeout

public Integer connectionTimeout

maxTotalConnections

public Integer maxTotalConnections

staleCheckingEnabled

public Boolean staleCheckingEnabled

soTimeout

public Integer soTimeout

linger

public Integer linger

cookiePolicy

public String cookiePolicy

userAgent

public String userAgent

httpClient

protected volatile org.apache.commons.httpclient.HttpClient httpClient

proxyHost

public String proxyHost

proxyPort

public Integer proxyPort

proxyCredentials

public org.apache.commons.httpclient.Credentials proxyCredentials

responseBodyInMemoryThresholdSize

public int responseBodyInMemoryThresholdSize

defaultMimeType

public String defaultMimeType
コンストラクタの詳細

CommonsHttpClient

public CommonsHttpClient()
メソッドの詳細

init

public void init()

processRobotsTxt

protected void processRobotsTxt(String url)

convertRobotsTxtPathPattern

protected String convertRobotsTxtPathPattern(String path)

doGet

public ResponseData doGet(String url)

doHead

public ResponseData doHead(String url)

doHttpMethod

public ResponseData doHttpMethod(String url,
                                 org.apache.commons.httpclient.HttpMethod httpMethod)

parseLastModified

protected Date parseLastModified(String value)


Copyright © 2009-2010 The Seasar Foundation. All Rights Reserved.