org.eclipse.jetty.http
Interface Generator
- All Known Implementing Classes:
- AbstractGenerator, Ajp13Generator, HttpGenerator, NestedGenerator
public interface Generator
Field Summary |
static boolean |
LAST
|
static boolean |
MORE
|
LAST
static final boolean LAST
- See Also:
- Constant Field Values
MORE
static final boolean MORE
- See Also:
- Constant Field Values
addContent
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
boolean addContent(byte b)
throws IOException
- Add content.
- Parameters:
b
- byte
- Returns:
- true if the buffers are full
- Throws:
IOException
complete
void complete()
throws IOException
- Throws:
IOException
completeHeader
void completeHeader(HttpFields responseFields,
boolean last)
throws IOException
- Throws:
IOException
flushBuffer
long flushBuffer()
throws IOException
- Throws:
IOException
getContentBufferSize
int getContentBufferSize()
getContentWritten
long getContentWritten()
isWritten
boolean isWritten()
isAllContentWritten
boolean isAllContentWritten()
increaseContentBufferSize
void increaseContentBufferSize(int size)
isBufferFull
boolean isBufferFull()
isCommitted
boolean isCommitted()
isComplete
boolean isComplete()
isPersistent
boolean isPersistent()
reset
void reset(boolean returnBuffers)
resetBuffer
void resetBuffer()
sendError
void sendError(int code,
String reason,
String content,
boolean close)
throws IOException
- Throws:
IOException
setHead
void setHead(boolean head)
setRequest
void setRequest(String method,
String uri)
setResponse
void setResponse(int status,
String reason)
setSendServerVersion
void setSendServerVersion(boolean sendServerVersion)
setVersion
void setVersion(int version)
isIdle
boolean isIdle()
setContentLength
void setContentLength(long length)
setPersistent
void setPersistent(boolean persistent)
setDate
void setDate(Buffer timeStampBuffer)
Copyright © 1995-2011 Mort Bay Consulting. All Rights Reserved.