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() |
|
java.lang.String |
getPath() |
|
HttpString |
getProtocol() |
|
HeaderMap |
getRequestHeaders() |
|
ClientRequest |
setMethod(HttpString method) |
|
ClientRequest |
setPath(java.lang.String path) |
|
ClientRequest |
setProtocol(HttpString protocol) |
|
java.lang.String |
toString() |
addToAttachmentList, createAttachmentMap, getAttachment, getAttachmentList, putAttachment, removeAttachment
public HeaderMap getRequestHeaders()
public java.lang.String getPath()
public HttpString getMethod()
public HttpString getProtocol()
public ClientRequest setPath(java.lang.String path)
public ClientRequest setMethod(HttpString method)
public ClientRequest setProtocol(HttpString protocol)
public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2018. All rights reserved.