public class DefaultRepresentationResult extends java.lang.Object implements RepresentationResult
Constructor and Description |
---|
DefaultRepresentationResult(FormatResolver formatResolver,
Result result,
java.util.List<Serialization> serializations,
RestHeadersHandler headersHandler) |
Modifier and Type | Method and Description |
---|---|
<T> Serializer |
from(T object) |
<T> Serializer |
from(T object,
java.lang.String alias) |
protected void |
sortSerializations()
Override this method if you want another ordering strategy.
|
public DefaultRepresentationResult(FormatResolver formatResolver, Result result, java.util.List<Serialization> serializations, RestHeadersHandler headersHandler)
public <T> Serializer from(T object)
from
in interface RepresentationResult
protected void sortSerializations()
public <T> Serializer from(T object, java.lang.String alias)
from
in interface RepresentationResult
Copyright © 2013 Caelum. All Rights Reserved.