org.jboss.resteasy.spi.StringConverter Maven / Gradle / Ivy
package org.jboss.resteasy.spi;
/**
* Implement this interface and annotate your class with @Provider to provide marshalling and unmarshalling
* of string-based, @HeaderParam, @MatrixParam, @QueryParam, and/or @PathParam injected values.
*
* Use this when toString(), valueOf, and/or constructor(String) can not satisfy your marshalling requirements.
*
* @author Bill Burke
* @version $Revision: 1 $
*
* @deprecated Replaced by javax.ws.rs.ext.ParamConverter
*
* @see jaxrs-api
* @see javax.ws.rs.ext.ParamConverter
*/
@Deprecated
public interface StringConverter
{
T fromString(String str);
String toString(T value);
}