I'm trying to implement FormParam annotation support for a lightweight jax-rs engine. There I want to support FormParam("") File
type of service implementation with multipart/form-data
According to the jax-rs spec there is a ParamConverterProvider
and ParamConverter
interfaces for the conversion purposes. But the method
accept a string.
@Override
public Object fromString(String s) {
//
}
Is it a good approach to use this for File?
If not what should be the better approach. At the moment I don't use any converters for java.io.File
but just parse as it is.