Interface ONAPLogAdapter.RequestAdapter<T extends ONAPLogAdapter.RequestAdapter<?>>

  • Type Parameters:
    T - type, for chaining.
    All Known Implementing Classes:
    ONAPLogAdapter.HttpServletRequestAdapter
    Enclosing class:
    ONAPLogAdapter

    public static interface ONAPLogAdapter.RequestAdapter<T extends ONAPLogAdapter.RequestAdapter<?>>
    Adapter for reading information from an incoming HTTP request. Incoming is generally easy, because in most cases you'll be able to get your hands on the HttpServletRequest. Perhaps should be generalized to refer to constants instead of requiring the implementation of specific methods.
    • Method Detail

      • getHeader

        String getHeader​(String name)
        Get header by name.
        Parameters:
        name - header name.
        Returns:
        header value, or null.
      • getClientAddress

        String getClientAddress()
        Get client address.
        Returns:
        address, if available.
      • getServerAddress

        String getServerAddress()
        Get server address.
        Returns:
        address, if available.
      • getRequestURI

        String getRequestURI()
        Get default service name, from service URI.
        Returns:
        service name default.
      • getUser

        Object getUser()
        Get UserName
        Returns:
        service name default.