org.mortbay.jetty
Interface Generator
- All Known Implementing Classes:
- AbstractGenerator
- public interface Generator
Field Summary |
static boolean |
LAST
|
static boolean |
MORE
|
LAST
public static final boolean LAST
- See Also:
- Constant Field Values
MORE
public static final boolean MORE
- See Also:
- Constant Field Values
addContent
public void addContent(Buffer content,
boolean last)
throws IOException
- Add content.
- Parameters:
content
- last
-
- Throws:
IllegalArgumentException
- if content
is immutable
.
IllegalStateException
- If the request is not expecting any more content,
or if the buffers are full and cannot be flushed.
IOException
- if there is a problem flushing the buffers.
addContent
public boolean addContent(byte b)
throws IOException
- Add content.
- Parameters:
b
- byte
- Returns:
- true if the buffers are full
- Throws:
IOException
complete
public void complete()
throws IOException
- Throws:
IOException
completeHeader
public void completeHeader(HttpFields responseFields,
boolean last)
throws IOException
- Throws:
IOException
flush
public long flush()
throws IOException
- Throws:
IOException
getContentBufferSize
public int getContentBufferSize()
getContentWritten
public long getContentWritten()
isContentWritten
public boolean isContentWritten()
increaseContentBufferSize
public void increaseContentBufferSize(int size)
isBufferFull
public boolean isBufferFull()
isCommitted
public boolean isCommitted()
isComplete
public boolean isComplete()
isPersistent
public boolean isPersistent()
reset
public void reset(boolean returnBuffers)
resetBuffer
public void resetBuffer()
sendError
public void sendError(int code,
String reason,
String content,
boolean close)
throws IOException
- Throws:
IOException
setHead
public void setHead(boolean head)
setRequest
public void setRequest(String method,
String uri)
setResponse
public void setResponse(int status,
String reason)
setSendServerVersion
public void setSendServerVersion(boolean sendServerVersion)
setVersion
public void setVersion(int version)
isIdle
public boolean isIdle()
setContentLength
public void setContentLength(long length)
setPersistent
public void setPersistent(boolean persistent)
Copyright © {inceptionYear}-2007 Mort Bay Consulting. All Rights Reserved.