diff options
author | Henning Baldersheim <balder@yahoo-inc.com> | 2022-11-29 17:40:00 +0100 |
---|---|---|
committer | Henning Baldersheim <balder@yahoo-inc.com> | 2022-11-29 17:40:00 +0100 |
commit | e807b7cab069732251d797a25f2bb6c8fd70c095 (patch) | |
tree | 19a421508950b5a00902bc6ee99fe0b99b83646c /container-search/src/main/java/com/yahoo/search/Query.java | |
parent | deaac2672dbf627a319b7ebaba808e7918bd0186 (diff) |
Reduce need to access getJDiscRequest
Diffstat (limited to 'container-search/src/main/java/com/yahoo/search/Query.java')
-rw-r--r-- | container-search/src/main/java/com/yahoo/search/Query.java | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/container-search/src/main/java/com/yahoo/search/Query.java b/container-search/src/main/java/com/yahoo/search/Query.java index f38e4d4d1cd..be964081326 100644 --- a/container-search/src/main/java/com/yahoo/search/Query.java +++ b/container-search/src/main/java/com/yahoo/search/Query.java @@ -46,6 +46,7 @@ import com.yahoo.search.yql.VespaSerializer; import com.yahoo.search.yql.YqlParser; import com.yahoo.yolean.Exceptions; +import java.net.URI; import java.nio.ByteBuffer; import java.util.ArrayList; import java.util.Collections; @@ -912,7 +913,9 @@ public class Query extends com.yahoo.processing.Request implements Cloneable { * Return the HTTP request which caused this query. This will never be null * when running with queries from the network. */ - public HttpRequest getHttpRequest() { return httpRequest; } + public HttpRequest getHttpRequest() { return httpRequest; } + + public URI getUri() { return httpRequest != null ? httpRequest.getUri() : null; } /** Returns the session id of this query, or null if none is assigned */ public SessionId getSessionId() { |