|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.codegist.crest.injector.DefaultInjector
public class DefaultInjector
Default request injector used by CRest.
Constructor Summary | |
---|---|
DefaultInjector()
|
Method Summary | |
---|---|
void |
inject(HttpRequest.Builder builder,
ParamContext context)
Serialize the given parameter using its preconfigured serializer and inject the result either : |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultInjector()
Method Detail |
---|
public void inject(HttpRequest.Builder builder, ParamContext context)
Serialize the given parameter using its preconfigured serializer and inject the result either :
* as a new query string parameter if no name is provided and the parameter is meant to be used as a Destination.URL
parameter
* merged in the request placeholder if a name is provided and the parameter is meant to be used as a Destination.URL
parameter
* as a body parameter with or without name. No more than one body parameter can be added without name.
If no serialized has been specified for the current param then see the default serializer documentation ParamConfig.DEFAULT_SERIALIZER
inject
in interface Injector
builder
- The current request beeing buildcontext
- The current method parameter being injected.ParamConfig.DEFAULT_SERIALIZER
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |