| Modifier and Type | Field and Description |
|---|---|
| public static final String | ATTRIBUTE_HANDLER
Request attribute storing either UploadPack or ReceivePack. |
| public static final String | ATTRIBUTE_REPOSITORY
Request attribute which stores the |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv static boolean | |
| pack-priv static boolean | |
| private static byte[] | |
| public static void | consumeRequestBody(HttpServletRequest
the request whose body must be consumed. req)Consume the entire request body, if one was supplied. |
| public static void | consumeRequestBody(InputStream
the stream to discard, closed if not null. in)Consume the rest of the input stream and discard it. |
| private static String | |
| public static InputStream | Returns: an input stream to read the raw, uncompressed request body.the incoming request whose input stream needs to be opened. req)Open the request input stream, automatically inflating if necessary. |
| public static Repository | Returns: the repository; never null.the current request. req)Get the selected repository from the request. |
| pack-priv static String | |
| pack-priv static boolean | |
| public static void | send(byte[]
to return to the user agent as this entity's body. content, final HttpServletRequest the incoming request. req, final HttpServletResponse the outgoing response. rsp)Send a response to a |
| private static byte[] | |
| public static void | sendPlainText(final String
to return to the user agent as this entity's body. content, final HttpServletRequest the incoming request. req, final HttpServletResponse the outgoing response. rsp)Send a plain text response to a |
| ATTRIBUTE_HANDLER | back to summary |
|---|---|
| public static final String ATTRIBUTE_HANDLER Request attribute storing either UploadPack or ReceivePack. | |
| ATTRIBUTE_REPOSITORY | back to summary |
|---|---|
| public static final String ATTRIBUTE_REPOSITORY Request attribute which stores the | |
| ServletUtils | back to summary |
|---|---|
| private ServletUtils() | |
| acceptsGzipEncoding | back to summary |
|---|---|
| pack-priv static boolean acceptsGzipEncoding(HttpServletRequest req) | |
| acceptsGzipEncoding | back to summary |
|---|---|
| pack-priv static boolean acceptsGzipEncoding(String accepts) | |
| compress | back to summary |
|---|---|
| private static byte[] compress(byte[] raw) throws IOException | |
| consumeRequestBody | back to summary |
|---|---|
| public static void consumeRequestBody(HttpServletRequest req) Consume the entire request body, if one was supplied.
| |
| consumeRequestBody | back to summary |
|---|---|
| public static void consumeRequestBody(InputStream in) Consume the rest of the input stream and discard it.
| |
| etag | back to summary |
|---|---|
| private static String etag(byte[] content) | |
| getInputStream | back to summary |
|---|---|
| public static InputStream getInputStream(HttpServletRequest req) throws IOException Open the request input stream, automatically inflating if necessary.
This method automatically inflates the input stream if the request
| |
| getRepository | back to summary |
|---|---|
| public static Repository getRepository(ServletRequest req) Get the selected repository from the request.
| |
| identify | back to summary |
|---|---|
| pack-priv static String identify(Repository git) | |
| isChunked | back to summary |
|---|---|
| pack-priv static boolean isChunked(HttpServletRequest req) | |
| send | back to summary |
|---|---|
| public static void send(byte[] content, final HttpServletRequest req, final HttpServletResponse rsp) throws IOException Send a response to a If the user agent supports a compressed transfer encoding and the content is large enough, the content may be compressed before sending.
The
| |
| sendInit | back to summary |
|---|---|
| private static byte[] sendInit(byte[] content, final HttpServletRequest req, final HttpServletResponse rsp) throws IOException | |
| sendPlainText | back to summary |
|---|---|
| public static void sendPlainText(final String content, final HttpServletRequest req, final HttpServletResponse rsp) throws IOException Send a plain text response to a The text response is encoded in the Git character encoding, UTF-8. If the user agent supports a compressed transfer encoding and the content is large enough, the content may be compressed before sending.
The
| |