public class SourceRequest extends Object
Constructor and Description |
---|
SourceRequest(SourceConfiguration sourceConfiguration,
org.apache.http.HttpRequest request,
org.apache.http.nio.NHttpServerConnection conn) |
Modifier and Type | Method and Description |
---|---|
void |
addExcessHeader(org.apache.http.Header h) |
org.apache.http.nio.NHttpServerConnection |
getConnection() |
Map |
getExcessHeaders() |
Map<String,String> |
getHeaders() |
String |
getMethod() |
Pipe |
getPipe() |
org.apache.http.HttpRequest |
getRequest() |
String |
getUri() |
org.apache.http.ProtocolVersion |
getVersion() |
boolean |
isEntityEnclosing() |
int |
read(org.apache.http.nio.NHttpServerConnection conn,
org.apache.http.nio.ContentDecoder decoder)
Produce the content in to the pipe.
|
void |
start(org.apache.http.nio.NHttpServerConnection conn)
Start processing the request by connecting the pipe if this request has an entity body.
|
public SourceRequest(SourceConfiguration sourceConfiguration, org.apache.http.HttpRequest request, org.apache.http.nio.NHttpServerConnection conn)
public void start(org.apache.http.nio.NHttpServerConnection conn) throws IOException, org.apache.http.HttpException
conn
- connectionIOException
- if an error occursorg.apache.http.HttpException
- if an error occurspublic int read(org.apache.http.nio.NHttpServerConnection conn, org.apache.http.nio.ContentDecoder decoder) throws IOException
conn
- the connectiondecoder
- content decoderIOException
- if an error occurspublic String getUri()
public String getMethod()
public Pipe getPipe()
public org.apache.http.nio.NHttpServerConnection getConnection()
public org.apache.http.ProtocolVersion getVersion()
public org.apache.http.HttpRequest getRequest()
public boolean isEntityEnclosing()
public Map getExcessHeaders()
public void addExcessHeader(org.apache.http.Header h)
Copyright © 2005-2017 Apache Software Foundation. All Rights Reserved.