|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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(java.lang.String name,
java.lang.String value)
add header to the part |
java.lang.Object |
getBody()
|
java.lang.String |
getContentType()
|
javax.ws.rs.core.MultivaluedMap<java.lang.String,java.lang.String> |
getHeaders()
|
void |
setBody(java.lang.Object body)
|
void |
setContentType(java.lang.String contentType)
Add the content type header |
void |
setHeaders(javax.ws.rs.core.MultivaluedMap<java.lang.String,java.lang.String> headers)
|
void |
setLocationHeader(java.lang.String location)
set the location header |
protected void |
writeBody(java.io.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(java.io.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(java.lang.String name, java.lang.String value)
name
- value
- public void setContentType(java.lang.String contentType)
contentType
- public java.lang.String getContentType()
public void setLocationHeader(java.lang.String location)
location
- protected void writeBody(java.io.OutputStream os, javax.ws.rs.ext.Providers providers) throws java.io.IOException
os
- providers
-
java.io.IOException
public void writePart(java.io.OutputStream os, javax.ws.rs.ext.Providers providers) throws java.io.IOException
os
- providers
-
java.io.IOException
public void setBody(java.lang.Object body)
public java.lang.Object getBody()
public 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()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |