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

java.lang.Object
  extended by org.cruxframework.crux.core.server.rest.core.dispatch.StringParameterInjector
Direct Known Subclasses:
CookieParamInjector, FormParamInjector, HeaderParamInjector, MessageBodyParamInjector, PathParamInjector, QueryParamInjector

public class StringParameterInjector
extends Object

Author:
Thiago da Rosa de Bustamante

Field Summary
protected  Constructor<?> constructor
           
protected  String defaultValue
           
protected  String paramName
           
protected  Class<?> rawType
           
protected  Method valueOf
           
 
Constructor Summary
protected StringParameterInjector()
           
protected StringParameterInjector(Class<?> type, String paramName, String defaultValue)
           
 
Method Summary
 Object extractValue(String strVal)
           
protected  Method findValueOfMethod()
           
 String getParamSignature()
           
protected  void initialize(Class<?> type, String paramName, String defaultValue)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

rawType

protected Class<?> rawType

constructor

protected Constructor<?> constructor

valueOf

protected Method valueOf

defaultValue

protected String defaultValue

paramName

protected String paramName
Constructor Detail

StringParameterInjector

protected StringParameterInjector()

StringParameterInjector

protected StringParameterInjector(Class<?> type,
                                  String paramName,
                                  String defaultValue)
Method Detail

initialize

protected void initialize(Class<?> type,
                          String paramName,
                          String defaultValue)

findValueOfMethod

protected Method findValueOfMethod()

getParamSignature

public String getParamSignature()

extractValue

public Object extractValue(String strVal)


Copyright © 2014. All rights reserved.