Constructor and Description |
---|
MutantImpl(ParserExecutor parser,
MediaType contentType,
Object data) |
MutantImpl(ParserExecutor parser,
MediaType type,
Object data,
Status errStatus) |
MutantImpl(ParserExecutor parser,
Object data) |
Modifier and Type | Method and Description |
---|---|
<T> T |
to(com.google.inject.TypeLiteral<T> type)
Convert a raw value to the given type.
|
<T> T |
to(com.google.inject.TypeLiteral<T> type,
MediaType mtype)
Convert a raw value to the given type.
|
Map<String,Mutant> |
toMap()
A map view of this mutant.
|
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
booleanValue, byteValue, charValue, doubleValue, floatValue, intValue, longValue, shortValue, to, to, to, to, toEnum, toList, toList, toOptional, toOptional, toSet, toSet, toSortedSet, toSortedSet, toUpload, value
public MutantImpl(ParserExecutor parser, MediaType type, Object data, Status errStatus)
public MutantImpl(ParserExecutor parser, MediaType contentType, Object data)
public MutantImpl(ParserExecutor parser, Object data)
public <T> T to(com.google.inject.TypeLiteral<T> type)
Mutant
public <T> T to(com.google.inject.TypeLiteral<T> type, MediaType mtype)
Mutant
MediaType
before
parsing a value, useful if a form field from a HTTP POST was send as json (or any other data).public Map<String,Mutant> toMap()
Mutant
Request.params()
the resulting map will have all the
available parameter names.
If the mutant is the result of Request.param(String)
the resulting map will have just
one entry, with the name as key.
If the mutant is the result of Request.body()
the resulting map will have just
one entry, with a key of body
.Copyright © 2015. All rights reserved.