Skip to content

How to override Request.getClientIp() ? #575

@mhagnumdw

Description

@mhagnumdw

In my current scenario I need to retrieve the client's IP from the X-Forwarded-For header.

I could override the Application.createRequestResponseFactory() method, create my custom RequestResponseFactory and in it create my instance that inherits from the Request class, overriding the getClientIp() method, but the Request class is final.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions