org.cruxframework.crux.core.server.rest.core.dispatch
Class HeaderParamInjector

java.lang.Object
  extended by org.cruxframework.crux.core.server.rest.core.dispatch.StringParameterInjector
      extended by org.cruxframework.crux.core.server.rest.core.dispatch.HeaderParamInjector
All Implemented Interfaces:
ValueInjector

public class HeaderParamInjector
extends StringParameterInjector
implements ValueInjector

Author:
Thiago da Rosa de Bustamante

Field Summary
 
Fields inherited from class org.cruxframework.crux.core.server.rest.core.dispatch.StringParameterInjector
constructor, defaultValue, paramName, rawType, valueOf
 
Constructor Summary
HeaderParamInjector(Type type, String header, String defaultValue)
           
 
Method Summary
 Object inject(HttpRequest request)
          Inject value extracted from an HTTP request.
 
Methods inherited from class org.cruxframework.crux.core.server.rest.core.dispatch.StringParameterInjector
extractValue, findValueOfMethod, getParamSignature, initialize
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HeaderParamInjector

public HeaderParamInjector(Type type,
                           String header,
                           String defaultValue)
Method Detail

inject

public Object inject(HttpRequest request)
Description copied from interface: ValueInjector
Inject value extracted from an HTTP request.

Specified by:
inject in interface ValueInjector
Returns:


Copyright © 2015. All rights reserved.