public class Request
extends java.lang.Object
Automatically gets the Basic Auth from headers.
Constructor and Description |
---|
Request(com.sun.net.httpserver.HttpExchange exchange,
Locale locale) |
Modifier and Type | Method and Description |
---|---|
java.util.Optional<Authentication> |
getAuth() |
Locale |
getLocale() |
java.lang.String |
getRemoteAddress() |
java.io.InputStream |
getRequestBody() |
java.lang.String |
getRequestMethod() |
RequestTarget |
getTarget() |
java.lang.String |
getTargetString() |
void |
setAuth(Authentication authentication) |
java.lang.String |
toString() |
public Request(com.sun.net.httpserver.HttpExchange exchange, Locale locale)
public java.util.Optional<Authentication> getAuth()
public void setAuth(Authentication authentication)
public java.lang.String getRequestMethod()
public java.lang.String getTargetString()
public RequestTarget getTarget()
public java.io.InputStream getRequestBody()
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String getRemoteAddress()
public Locale getLocale()