diff options
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() { |