public interface StateConverter
| Modifier and Type | Method and Description |
|---|---|
<S extends Serializable> |
marshall(PortletStateType<S> stateType,
PortletState state)
Marshall the producer state as a byte array.
|
<S extends Serializable> |
unmarshall(PortletStateType<S> stateType,
S marshalledState)
Unmarshall the producer state from a byte array.
|
<S extends Serializable> S marshall(PortletStateType<S> stateType, PortletState state) throws StateConversionException, IllegalArgumentException
stateType - the state typestate - the producer stateStateConversionException - if marshalling cannot be performedIllegalArgumentException - if the state is null<S extends Serializable> PortletState unmarshall(PortletStateType<S> stateType, S marshalledState) throws StateConversionException, IllegalArgumentException
stateType - the state typemarshalledState - the marshalled stateStateConversionException - if unmarshalling cannot be performedIllegalArgumentException - if the argument is nullCopyright © 2003-2021 GateIn. All Rights Reserved.