|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.linkedin.data.template.RecordTemplate
com.linkedin.data.template.DynamicRecordTemplate
com.linkedin.restli.common.ActionResponse<T>
public final class ActionResponse<T>
A response from an action. Has a single value field, of template or primitive type.
| Field Summary | |
|---|---|
static java.lang.String |
VALUE_NAME
|
| Constructor Summary | |
|---|---|
ActionResponse(java.lang.Class<T> valueClass)
Deprecated. RecordDataSchema should be computed in builders and passed, rather than creating it on the fly. |
|
ActionResponse(com.linkedin.data.DataMap data,
java.lang.Class<T> valueClass)
Deprecated. value FieldDef and associated RecordDataSchema should be computed
in builders and passed in here rather than being computed on the fly. |
|
ActionResponse(com.linkedin.data.DataMap data,
com.linkedin.data.template.FieldDef<T> valueFieldDef,
com.linkedin.data.schema.RecordDataSchema schema)
Initialize an ActionResponse based on the data returned from the RestLi server, the expected return type of the Action, and the RecordDataSchema for the Action return. |
|
ActionResponse(com.linkedin.data.template.FieldDef<T> valueFieldDef,
com.linkedin.data.schema.RecordDataSchema schema)
Initialize an ActionResponse based on the expected return type of the action |
|
ActionResponse(T value)
Deprecated. |
|
ActionResponse(T value,
com.linkedin.data.template.FieldDef<T> valueFieldDef,
com.linkedin.data.schema.RecordDataSchema schema)
Initialize an ActionResponse based on the value result of the Action. |
|
| Method Summary | |
|---|---|
T |
getValue()
Get the value result of the Action. |
void |
setValue(T value)
Set the value result of the Action. |
| Methods inherited from class com.linkedin.data.template.DynamicRecordTemplate |
|---|
getValue, setValue |
| Methods inherited from class com.linkedin.data.template.RecordTemplate |
|---|
clone, contains, copy, data, equals, hashCode, obtainDirect, obtainWrapped, putDirect, putDirect, putDirect, putWrapped, putWrapped, remove, schema, toString |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String VALUE_NAME
| Constructor Detail |
|---|
public ActionResponse(com.linkedin.data.DataMap data,
com.linkedin.data.template.FieldDef<T> valueFieldDef,
com.linkedin.data.schema.RecordDataSchema schema)
data - DataMap of the returned datavalueFieldDef - the FieldDef representing the action return.schema - the RecordDataSchema of the Action return
@Deprecated
public ActionResponse(com.linkedin.data.DataMap data,
java.lang.Class<T> valueClass)
FieldDef and associated RecordDataSchema should be computed
in builders and passed in here rather than being computed on the fly.
data - DataMap of the returned datavalueClass - expected return type of the Action
public ActionResponse(com.linkedin.data.template.FieldDef<T> valueFieldDef,
com.linkedin.data.schema.RecordDataSchema schema)
valueFieldDef - the FieldDef representing the action return.schema - the RecordDataSchema of the Action return@Deprecated public ActionResponse(java.lang.Class<T> valueClass)
valueClass - Class of the type that the Action is expected to return
public ActionResponse(T value,
com.linkedin.data.template.FieldDef<T> valueFieldDef,
com.linkedin.data.schema.RecordDataSchema schema)
value - Class of the type that the Action is expected to returnvalueFieldDef - the FieldDef representing the action return.schema - the RecordDataSchema of the Action return@Deprecated public ActionResponse(T value)
value - Class of the type that the Action is expected to return| Method Detail |
|---|
public T getValue()
public void setValue(T value)
value - value of type T
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||