|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.ws.rs.core.GenericType<T>
org.glassfish.jersey.server.ChunkedOutput<T>
T - chunk type.public class ChunkedOutput<T>
Used for sending messages in "typed" chunks. Useful for long running processes, which needs to produce partial responses.
| Constructor Summary | |
|---|---|
protected |
ChunkedOutput()
Create new chunked response. |
|
ChunkedOutput(java.lang.reflect.Type chunkType)
Create ChunkedOutput with specified type. |
| Method Summary | |
|---|---|
void |
close()
Close this response - it will be finalized and underlying connections will be closed or made available for another response. |
boolean |
equals(java.lang.Object obj)
|
int |
hashCode()
|
boolean |
isClosed()
Get state information. |
java.lang.String |
toString()
|
void |
write(T chunk)
Write a chunk. |
| Methods inherited from class javax.ws.rs.core.GenericType |
|---|
getRawType, getType |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
protected ChunkedOutput()
public ChunkedOutput(java.lang.reflect.Type chunkType)
ChunkedOutput with specified type.
chunkType - chunk type| Method Detail |
|---|
public void write(T chunk)
throws java.io.IOException
chunk - a chunk instance to be written.
java.io.IOException - if this response is closed or when encountered any problem during serializing or writing a chunk.
public void close()
throws java.io.IOException
close in interface java.io.Closeablejava.io.IOExceptionpublic boolean isClosed()
ChunkedOutput can be closed by the client side - client can close connection
from its side.
public boolean equals(java.lang.Object obj)
equals in class javax.ws.rs.core.GenericType<T>public int hashCode()
hashCode in class javax.ws.rs.core.GenericType<T>public java.lang.String toString()
toString in class javax.ws.rs.core.GenericType<T>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||