Class Request
java.lang.Object
com.microsoft.azure.management.containerregistry.Request
The request that generated the event.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddr()
Get the IP or hostname and possibly port of the client connection that initiated the event.host()
Get the externally accessible hostname of the registry instance, as specified by the http host header on incoming requests.id()
Get the ID of the request that initiated the event.method()
Get the request method that generated the event.Get the user agent header of the request.Set the IP or hostname and possibly port of the client connection that initiated the event.Set the externally accessible hostname of the registry instance, as specified by the http host header on incoming requests.Set the ID of the request that initiated the event.withMethod
(String method) Set the request method that generated the event.withUseragent
(String useragent) Set the user agent header of the request.
-
Constructor Details
-
Request
public Request()
-
-
Method Details
-
id
Get the ID of the request that initiated the event.- Returns:
- the id value
-
withId
Set the ID of the request that initiated the event.- Parameters:
id
- the id value to set- Returns:
- the Request object itself.
-
addr
Get the IP or hostname and possibly port of the client connection that initiated the event. This is the RemoteAddr from the standard http request.- Returns:
- the addr value
-
withAddr
Set the IP or hostname and possibly port of the client connection that initiated the event. This is the RemoteAddr from the standard http request.- Parameters:
addr
- the addr value to set- Returns:
- the Request object itself.
-
host
Get the externally accessible hostname of the registry instance, as specified by the http host header on incoming requests.- Returns:
- the host value
-
withHost
Set the externally accessible hostname of the registry instance, as specified by the http host header on incoming requests.- Parameters:
host
- the host value to set- Returns:
- the Request object itself.
-
method
Get the request method that generated the event.- Returns:
- the method value
-
withMethod
Set the request method that generated the event.- Parameters:
method
- the method value to set- Returns:
- the Request object itself.
-
useragent
Get the user agent header of the request.- Returns:
- the useragent value
-
withUseragent
Set the user agent header of the request.- Parameters:
useragent
- the useragent value to set- Returns:
- the Request object itself.
-