@Test public void testUserAgent() throws OdpsException { System.err.println(odps.getRestClient().getUserAgent()); assertTrue(odps.getRestClient().getUserAgent().contains("JavaVersion")); assertTrue(odps.getRestClient().getUserAgent().contains("Version")); assertTrue(odps.getRestClient().getUserAgent().contains("Revision")); }
public String getUserAgent() { return userAgent; }
RestClient { public String getUserAgent() { return userAgent; } }
RestClient { public String getUserAgent() { return userAgent; } @Survey  RestClient(Transport transport); }
RestClient { public String getUserAgent() { return userAgent; } @Survey  RestClient(Transport transport); RetryLogger getRetryLogger(); void setRetryLogger(RetryLogger logger); T request(Class<T> clazz, String resource, String method); T request(Class<T> clazz, String resource, String method, Map<String, String> params); T stringRequest(Class<T> clazz, String resource, String method,
                             Map<String, String> params,
                             Map<String, String> headers, String body); T request(Class<T> clazz, String resource, String method, Map<String, String> params,
                       Map<String, String> headers, byte[] body); Response stringRequest(String resource, String method, Map<String, String> params,
                                Map<String, String> headers, String body); Response request(String resource, String method, Map<String, String> params,
                          Map<String, String> headers,
                          byte[] body); Response request(String resource, String method, Map<String, String> params,
                          Map<String, String> headers,
                          InputStream body, long bodyLen); Connection connect(String resource, String method, Map<String, String> params,
                            Map<String, String> headers); Connection connect(String resource, String method, Map<String, String> params,
                            Map<String, String> headers, String endpoint); @Survey Response requestForRawResponse(String resource, String method, Map<String, String> params,
                                        Map<String, String> headers,
                                        InputStream body, int length); void setAccount(Account account); Account getAccount(); void setAppAccount(AppAccount appAccount); AppAccount getAppAccount(); void setEndpoint(String endpoint); String getDefaultProject(); void setDefaultProject(String defaultProject); String getEndpoint(); @Survey Transport getTransport(); String getUserAgent(); void setUserAgent(String userAgent); void setConnectTimeout(int timeout); int getConnectTimeout(); void setReadTimeout(int timeout); int getReadTimeout(); int getRetryTimes(); void setRetryTimes(int retryTimes); boolean isIgnoreCerts(); void setIgnoreCerts(boolean ignoreCerts); void enableDeprecatedLogger(); void disableDeprecatedLogger(); }
RestClient { public String getUserAgent() { return userAgent; } @Survey  RestClient(Transport transport); RetryLogger getRetryLogger(); void setRetryLogger(RetryLogger logger); T request(Class<T> clazz, String resource, String method); T request(Class<T> clazz, String resource, String method, Map<String, String> params); T stringRequest(Class<T> clazz, String resource, String method,
                             Map<String, String> params,
                             Map<String, String> headers, String body); T request(Class<T> clazz, String resource, String method, Map<String, String> params,
                       Map<String, String> headers, byte[] body); Response stringRequest(String resource, String method, Map<String, String> params,
                                Map<String, String> headers, String body); Response request(String resource, String method, Map<String, String> params,
                          Map<String, String> headers,
                          byte[] body); Response request(String resource, String method, Map<String, String> params,
                          Map<String, String> headers,
                          InputStream body, long bodyLen); Connection connect(String resource, String method, Map<String, String> params,
                            Map<String, String> headers); Connection connect(String resource, String method, Map<String, String> params,
                            Map<String, String> headers, String endpoint); @Survey Response requestForRawResponse(String resource, String method, Map<String, String> params,
                                        Map<String, String> headers,
                                        InputStream body, int length); void setAccount(Account account); Account getAccount(); void setAppAccount(AppAccount appAccount); AppAccount getAppAccount(); void setEndpoint(String endpoint); String getDefaultProject(); void setDefaultProject(String defaultProject); String getEndpoint(); @Survey Transport getTransport(); String getUserAgent(); void setUserAgent(String userAgent); void setConnectTimeout(int timeout); int getConnectTimeout(); void setReadTimeout(int timeout); int getReadTimeout(); int getRetryTimes(); void setRetryTimes(int retryTimes); boolean isIgnoreCerts(); void setIgnoreCerts(boolean ignoreCerts); void enableDeprecatedLogger(); void disableDeprecatedLogger(); static final int DEFAULT_CONNECT_TIMEOUT; static final int DEFAULT_CONNECT_RETRYTIMES; static final int DEFAULT_READ_TIMEOUT; static final boolean DEFAULT_IGNORE_CERTS; }