org.kuali.common.http.model
Class HttpRequestResult

java.lang.Object
  extended by org.kuali.common.http.model.HttpRequestResult

public final class HttpRequestResult
extends Object


Nested Class Summary
static class HttpRequestResult.Builder
           
 
Method Summary
static HttpRequestResult.Builder builder(IOException exception, long start)
           
static HttpRequestResult.Builder builder(String statusText, int statusCode, com.google.common.base.Optional<String> responseBody, long start)
           
 long getElapsed()
           
 com.google.common.base.Optional<IOException> getException()
           
 com.google.common.base.Optional<String> getResponseBody()
           
 long getStart()
           
 com.google.common.base.Optional<Integer> getStatusCode()
           
 String getStatusText()
           
 long getStop()
           
static HttpRequestResult newHttpRequestResult(IOException exception, long start)
           
static HttpRequestResult newHttpRequestResult(String statusText, int statusCode, com.google.common.base.Optional<String> responseBody, long start)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

newHttpRequestResult

public static HttpRequestResult newHttpRequestResult(String statusText,
                                                     int statusCode,
                                                     com.google.common.base.Optional<String> responseBody,
                                                     long start)

newHttpRequestResult

public static HttpRequestResult newHttpRequestResult(IOException exception,
                                                     long start)

builder

public static HttpRequestResult.Builder builder(String statusText,
                                                int statusCode,
                                                com.google.common.base.Optional<String> responseBody,
                                                long start)

builder

public static HttpRequestResult.Builder builder(IOException exception,
                                                long start)

getResponseBody

public com.google.common.base.Optional<String> getResponseBody()

getStatusCode

public com.google.common.base.Optional<Integer> getStatusCode()

getStatusText

public String getStatusText()

getException

public com.google.common.base.Optional<IOException> getException()

getStart

public long getStart()

getStop

public long getStop()

getElapsed

public long getElapsed()


Copyright © 2014 The Kuali Foundation. All rights reserved.