cn.signit.sdk.http
类 AbstractHttpRequest

java.lang.Object
  继承者 cn.signit.sdk.http.AbstractHttpRequest
直接已知子类:
HttpGetRequest, HttpPostRequest

public abstract class AbstractHttpRequest
extends Object


字段摘要
protected  Authentication auth
           
protected static int CONNECT_TIMEOUT
           
static String DEFAULT_ENCODING
           
protected  Integer lastHttpStatusCode
           
protected  InputStream lastResponseStream
           
protected static int READ_TIMEOUT
           
protected  String url
           
static String USER_AGENT
           
 
构造方法摘要
AbstractHttpRequest()
           
 
方法摘要
 void doRequest()
           
 String getResponseBody()
          Returns the last response stream as a string.
 Integer getResponseCode()
          Returns the last HTTP response code.
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

字段详细信息

url

protected String url

READ_TIMEOUT

protected static int READ_TIMEOUT

CONNECT_TIMEOUT

protected static int CONNECT_TIMEOUT

USER_AGENT

public static final String USER_AGENT
另请参见:
常量字段值

lastHttpStatusCode

protected Integer lastHttpStatusCode

lastResponseStream

protected InputStream lastResponseStream

auth

protected Authentication auth

DEFAULT_ENCODING

public static final String DEFAULT_ENCODING
另请参见:
常量字段值
构造方法详细信息

AbstractHttpRequest

public AbstractHttpRequest()
方法详细信息

doRequest

public void doRequest()
               throws SignitException
抛出:
SignitException

getResponseCode

public Integer getResponseCode()
Returns the last HTTP response code.

返回:
Integer response code

getResponseBody

public String getResponseBody()
Returns the last response stream as a string.

返回:
String


Copyright © 2019. All rights reserved.