Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## com.intel.cosbench.protocol
Class Response

    java.lang.Object
      com.intel.cosbench.protocol.Response

Direct Known Subclasses:
  AbortResponse, CloseResponse, LaunchResponse, LoginResponse, PingResponse, QueryResponse, SubmitResponse

    public class Response

extends java.lang.Object

The base class encapsulates HTTP response from Drivers.

Author:
  ywang19

Constructor Summary
`Response()`
`Response(boolean succ, java.lang.String error)`
`Response(int code)`
`Response(int code, java.lang.String error)`

Method Summary
`int` | `getCode()`
`java.lang.String` | `getError()`
`boolean` | `isSucc()`
`void` | `setCode(int code)`
`void` | `setError(java.lang.String error)`
`void` | `setSucc(boolean succ)`

Methods inherited from class java.lang.Object
`equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### Response

    public Response()

### Response

    public Response(int code)

### Response

    public Response(int code,
                    java.lang.String error)

### Response

    public Response(boolean succ,
                    java.lang.String error)

Method Detail

### getCode

    public int getCode()

### setCode

    public void setCode(int code)

### isSucc

    public boolean isSucc()

### setSucc

    public void setSucc(boolean succ)

### getError

    public java.lang.String getError()

### setError

    public void setError(java.lang.String error)

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD