Attachable
public final class ClientRequest extends AbstractAttachable
ClientConnection
.
This class only represents the HTTP header, it does not represent an entity body. If the request needs an entity
body then this must be specified by either setting a Content-Length or Transfer-Encoding header, otherwise
the client will assume that the body is empty.Constructor | Description |
---|---|
ClientRequest() |
Modifier and Type | Method | Description |
---|---|---|
HttpString |
getMethod() |
|
String |
getPath() |
|
HttpString |
getProtocol() |
|
HeaderMap |
getRequestHeaders() |
|
ClientRequest |
setMethod(HttpString method) |
|
ClientRequest |
setPath(String path) |
|
ClientRequest |
setProtocol(HttpString protocol) |
|
String |
toString() |
addToAttachmentList, createAttachmentMap, getAttachment, getAttachmentList, putAttachment, removeAttachment
public HeaderMap getRequestHeaders()
public String getPath()
public HttpString getMethod()
public HttpString getProtocol()
public ClientRequest setPath(String path)
public ClientRequest setMethod(HttpString method)
public ClientRequest setProtocol(HttpString protocol)
Copyright © 2018. All rights reserved.