Menu
pushmode

Class PageRequest

PushMode » API Reference » pushmode

    • Method Detail

      • server

        public PushServer server()
        PushServer that received this request.
        Returns:
        PushServer that received this request.
        Thread-safety:
        This method only reads immutable data.
      • location

        public String location()
        Request URL. This includes scheme, domain, and query string, not just the request path. If running behind reverse proxy, scheme and domain will reflect proxy's point of view, which usually means http://localhost:port. PushMode doesn't interpret X-Forwarded-For, but this header can be found in headers().
        Returns:
        Request URL.
        See Also:
        headers()
        Thread-safety:
        This method only reads immutable data.
      • cookies

        public Map<String,String> cookies()
        Cookies supplied with the request. This map contains only the initial cookies sent with the initial HTTP request. The map is not updated when cookies are set via MirrorBrowser.cookies().
        Returns:
        Cookies supplied with the request.
        See Also:
        MirrorBrowser.cookies()
        Thread-safety:
        This method only reads immutable data.
      • headers

        public Map<String,String> headers()
        All HTTP headers found in the request. If a header is provided more than once, content of all instances of the header is joined together with commas to form single big header.
        Returns:
        Map of headers in HTTP request. The returned map is configured with String.CASE_INSENSITIVE_ORDER so that header names can be searched regardless of case.
        See Also:
        cookies()
        Thread-safety:
        This method only reads immutable data.
      • source

        public String source()
        IP address of the client. IP address is provided in standard notation for IPv4 and IPv6. If running behind reverse proxy, this will be IP address of the proxy. PushMode doesn't interpret X-Forwarded-For, but this header can be found in headers().
        Returns:
        IP address of the client.
        See Also:
        headers()
        Thread-safety:
        This method only reads immutable data.
      • pageId

        public String pageId()
        Unique page ID. This is the same ID returned by PushPage.pageId() except here it is available even before PushPage is constructed.
        Returns:
        Page ID.
        See Also:
        PushPage.pageId()
        Thread-safety:
        This method only reads immutable data.