com.fruitioninc.jwc
Class DefaultRequestParameterNameMarshaller

java.lang.Object
  |
  +--com.fruitioninc.jwc.DefaultRequestParameterNameMarshaller
All Implemented Interfaces:
RequestParameterNameMarshaller

public class DefaultRequestParameterNameMarshaller
extends java.lang.Object
implements RequestParameterNameMarshaller

Default name marshaller. Uses the component's path name prefixed with PREFIX and appended with Component.NAME_DELIMITER + name. This is somewhat verbose. A more bandwidth efficient version might compress this information.


Field Summary
static java.lang.String PREFIX
          The string used to prefix HTTP request parameter names.
 
Constructor Summary
DefaultRequestParameterNameMarshaller()
           
 
Method Summary
 java.lang.String marshall(Component component, java.lang.String name)
           
 Property unmarshall(java.lang.String parameterName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PREFIX

public static final java.lang.String PREFIX
The string used to prefix HTTP request parameter names. This prefix is used to identify requests parameters which need to be routed to their respective components.

See Also:
Constant Field Values
Constructor Detail

DefaultRequestParameterNameMarshaller

public DefaultRequestParameterNameMarshaller()
Method Detail

marshall

public java.lang.String marshall(Component component,
                                 java.lang.String name)
Specified by:
marshall in interface RequestParameterNameMarshaller

unmarshall

public Property unmarshall(java.lang.String parameterName)
Specified by:
unmarshall in interface RequestParameterNameMarshaller