@Consumes(value={"application/x-www-form-urlencoded","application/octet-stream"}) @Provider public class FormReader extends Object implements javax.ws.rs.ext.MessageBodyReader<HashMap<String,String>>
Constructor and Description |
---|
FormReader() |
Modifier and Type | Method and Description |
---|---|
boolean |
isReadable(Class<?> type,
Type genericType,
Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType) |
String |
readAsString(InputStream in) |
HashMap<String,String> |
readFrom(Class<HashMap<String,String>> type,
Type genericType,
Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType,
javax.ws.rs.core.MultivaluedMap<String,String> headers,
InputStream in) |
public boolean isReadable(Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)
public HashMap<String,String> readFrom(Class<HashMap<String,String>> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType, javax.ws.rs.core.MultivaluedMap<String,String> headers, InputStream in) throws IOException
readFrom
in interface javax.ws.rs.ext.MessageBodyReader<HashMap<String,String>>
IOException
public final String readAsString(InputStream in) throws IOException
IOException
Copyright © 2019. All rights reserved.