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 and Description |
---|
ClientRequest() |
Modifier and Type | Method and 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 © 2020 JBoss by Red Hat. All rights reserved.