public class Request extends Object
Constructor and Description |
---|
Request() |
Modifier and Type | Method and Description |
---|---|
String |
addr()
Get the IP or hostname and possibly port of the client connection that initiated the event.
|
String |
host()
Get the externally accessible hostname of the registry instance, as specified by the http host header on incoming requests.
|
String |
id()
Get the ID of the request that initiated the event.
|
String |
method()
Get the request method that generated the event.
|
String |
useragent()
Get the user agent header of the request.
|
Request |
withAddr(String addr)
Set the IP or hostname and possibly port of the client connection that initiated the event.
|
Request |
withHost(String host)
Set the externally accessible hostname of the registry instance, as specified by the http host header on incoming requests.
|
Request |
withId(String id)
Set the ID of the request that initiated the event.
|
Request |
withMethod(String method)
Set the request method that generated the event.
|
Request |
withUseragent(String useragent)
Set the user agent header of the request.
|
public String id()
public Request withId(String id)
id
- the id value to setpublic String addr()
public Request withAddr(String addr)
addr
- the addr value to setpublic String host()
public Request withHost(String host)
host
- the host value to setpublic String method()
public Request withMethod(String method)
method
- the method value to setpublic String useragent()
Copyright © 2019. All rights reserved.