Apache CXF API

org.apache.cxf.jaxrs.provider
Class FormEncodingReaderProvider

java.lang.Object
  extended by org.apache.cxf.jaxrs.provider.FormEncodingReaderProvider
All Implemented Interfaces:
javax.ws.rs.ext.MessageBodyReader<java.lang.Object>

@Provider
public final class FormEncodingReaderProvider
extends java.lang.Object
implements javax.ws.rs.ext.MessageBodyReader<java.lang.Object>


Constructor Summary
FormEncodingReaderProvider()
           
 
Method Summary
static void copy(java.io.InputStream input, java.io.OutputStream output, int bufferSize)
           
protected static javax.ws.rs.core.MultivaluedMap<java.lang.String,java.lang.String> getParams(java.lang.String body)
          Retrieve map of parameters from the passed in message
 boolean isReadable(java.lang.Class<?> type, java.lang.reflect.Type genericType, java.lang.annotation.Annotation[] annotations)
           
 javax.ws.rs.core.MultivaluedMap<java.lang.String,java.lang.String> readFrom(java.lang.Class<java.lang.Object> clazz, java.lang.reflect.Type genericType, java.lang.annotation.Annotation[] annotations, javax.ws.rs.core.MediaType type, javax.ws.rs.core.MultivaluedMap<java.lang.String,java.lang.String> headers, java.io.InputStream is)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FormEncodingReaderProvider

public FormEncodingReaderProvider()
Method Detail

isReadable

public boolean isReadable(java.lang.Class<?> type,
                          java.lang.reflect.Type genericType,
                          java.lang.annotation.Annotation[] annotations)
Specified by:
isReadable in interface javax.ws.rs.ext.MessageBodyReader<java.lang.Object>

readFrom

public javax.ws.rs.core.MultivaluedMap<java.lang.String,java.lang.String> readFrom(java.lang.Class<java.lang.Object> clazz,
                                                                                   java.lang.reflect.Type genericType,
                                                                                   java.lang.annotation.Annotation[] annotations,
                                                                                   javax.ws.rs.core.MediaType type,
                                                                                   javax.ws.rs.core.MultivaluedMap<java.lang.String,java.lang.String> headers,
                                                                                   java.io.InputStream is)
                                                                            throws java.io.IOException
Specified by:
readFrom in interface javax.ws.rs.ext.MessageBodyReader<java.lang.Object>
Throws:
java.io.IOException

copy

public static void copy(java.io.InputStream input,
                        java.io.OutputStream output,
                        int bufferSize)
                 throws java.io.IOException
Throws:
java.io.IOException

getParams

protected static javax.ws.rs.core.MultivaluedMap<java.lang.String,java.lang.String> getParams(java.lang.String body)
Retrieve map of parameters from the passed in message

Parameters:
message -
Returns:
a Map of parameters.

Apache CXF API

Apache CXF