|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.wink.common.model.multipart.InPart
public class InPart
This class is used to represent a single part in an inbound MultiPart messages,
InMultiPart
Constructor Summary | |
---|---|
InPart()
|
|
InPart(javax.ws.rs.core.MultivaluedMap<java.lang.String,java.lang.String> headers,
javax.ws.rs.ext.Providers providers)
|
Method Summary | ||
---|---|---|
|
getBody(java.lang.Class<T> type,
java.lang.reflect.Type genericType)
This method is used for deserialization of the part stream. |
|
|
getBody(java.lang.Class<T> type,
java.lang.reflect.Type genericType,
javax.ws.rs.ext.Providers providers)
This method is used for deserialization of the part stream to a |
|
java.lang.String |
getContentType()
|
|
javax.ws.rs.core.MultivaluedMap<java.lang.String,java.lang.String> |
getHeaders()
Get the part's headers |
|
java.util.Set<java.lang.String> |
getHeadersName()
|
|
java.io.InputStream |
getInputStream()
|
|
javax.ws.rs.ext.Providers |
getProviders()
get the providers that are used by the @see InPart#getBody(Class, Type) method for deserialization of the part |
|
protected void |
setHeaders(javax.ws.rs.core.MultivaluedMap<java.lang.String,java.lang.String> headers)
|
|
protected void |
setInputStream(java.io.InputStream inputStream)
|
|
void |
setProviders(javax.ws.rs.ext.Providers providers)
set the providers to be used by the @see InPart#getBody(Class, Type) method for deserialization of the part |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public InPart()
public InPart(javax.ws.rs.core.MultivaluedMap<java.lang.String,java.lang.String> headers, javax.ws.rs.ext.Providers providers)
Method Detail |
---|
public javax.ws.rs.ext.Providers getProviders()
public void setProviders(javax.ws.rs.ext.Providers providers)
protected void setInputStream(java.io.InputStream inputStream)
public java.io.InputStream getInputStream()
protected void setHeaders(javax.ws.rs.core.MultivaluedMap<java.lang.String,java.lang.String> headers)
public javax.ws.rs.core.MultivaluedMap<java.lang.String,java.lang.String> getHeaders()
public java.lang.String getContentType()
public java.util.Set<java.lang.String> getHeadersName()
public <T> T getBody(java.lang.Class<T> type, java.lang.reflect.Type genericType, javax.ws.rs.ext.Providers providers) throws java.io.IOException
T
- type
- genericType
- providers
-
java.io.IOException
public <T> T getBody(java.lang.Class<T> type, java.lang.reflect.Type genericType) throws java.io.IOException
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |