Class RequestInfo

java.lang.Object
io.micronaut.starter.api.RequestInfo

public class RequestInfo extends Object
The server URL.
Since:
1.0.0
Author:
graemerocher
  • Field Details

  • Constructor Details

    • RequestInfo

      public RequestInfo(String serverURL, String path, io.micronaut.http.HttpParameters parameters, Locale locale, String userAgent)
      Default constructor.
      Parameters:
      serverURL - The URL
      locale - The locale
  • Method Details

    • getServerURL

      public String getServerURL()
      Returns:
      The server URL
    • getCurrentURL

      public String getCurrentURL()
      Returns:
      The current URL
    • self

      public LinkDTO self()
      Returns:
      The self link
    • link

      public LinkDTO link(Relationship rel, ApplicationType type)
      Parameters:
      rel - The relationship
      type - The type
      Returns:
      A new link
    • link

      public LinkDTO link(ApplicationType type)
      Parameters:
      type - The type
      Returns:
      A new link
    • getLocale

      public Locale getLocale()
    • link

      public LinkDTO link(String uri)
    • getUserAgent

      public String getUserAgent()
    • getPath

      public String getPath()
      Returns:
      request path
    • getParameters

      public io.micronaut.http.HttpParameters getParameters()
      Returns:
      request parameters
    • toString

      public String toString()
      Overrides:
      toString in class Object