|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.wink.common.model.multipart.OutPart
public class OutPart
This class is used to represent a part in an OutMultiPart message,
basically it holds the part headers and body
| Constructor Summary | |
|---|---|
OutPart()
|
|
| Method Summary | |
|---|---|
void |
addHeader(String name,
String value)
add header to the part |
Object |
getBody()
|
String |
getContentType()
|
javax.ws.rs.core.MultivaluedMap<String,String> |
getHeaders()
|
void |
setBody(Object body)
|
void |
setContentType(String contentType)
Add the content type header |
void |
setHeaders(javax.ws.rs.core.MultivaluedMap<String,String> headers)
|
void |
setLocationHeader(String location)
set the location header |
protected void |
writeBody(OutputStream os,
javax.ws.rs.ext.Providers providers)
write the part body to the os stream, the providers might be used to serialize the body |
void |
writePart(OutputStream os,
javax.ws.rs.ext.Providers providers)
write the entire part to the os stream, the providers might be used to serialize the body |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public OutPart()
| Method Detail |
|---|
public void addHeader(String name,
String value)
name - value - public void setContentType(String contentType)
contentType - public String getContentType()
public void setLocationHeader(String location)
location -
protected void writeBody(OutputStream os,
javax.ws.rs.ext.Providers providers)
throws IOException
os - providers -
IOException
public void writePart(OutputStream os,
javax.ws.rs.ext.Providers providers)
throws IOException
os - providers -
IOExceptionpublic void setBody(Object body)
public Object getBody()
public void setHeaders(javax.ws.rs.core.MultivaluedMap<String,String> headers)
public javax.ws.rs.core.MultivaluedMap<String,String> getHeaders()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||