Skip to content

Access HttpServletRequest in Spring Controller that implements generated interface #163

@andrew-kratik

Description

@andrew-kratik

Hi

Thanks for your great job!

Is there possibility to access HttpServletRequest object for current request in Spring Controller that implements generated interface?
using com.phoenixnap.oss.ramlapisync.generation.rules.Spring4ControllerInterfaceRule

The problem is that HttpServletRequest should be added to method signature in order to be injected, but there is no way to add this parameter to generated interfaces since it's not in RAML file. Also it's required only on some methods.

Thanks
Andrii

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementv2Feature will be implemented in v2.0 only (master branch)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions