Skip to content

ServerServlet: Custom component subclass used in mode 2 cannot be configured with restlet.xml #766

@arcticgeek

Description

@arcticgeek

ServerServlet currently offers mode 1 where it is initialized with the default Component class that is configured via restlet.xml if it exists. It also offers mode 2 where it is initialized with custom Component subclass specified by the servlet init-param 'org.restlet.component'.

It is not currently possible to specify a custom component in mode 2, but retain the ability to further configure it via restlet.xml if it exists. The restlet.xml file is only ever used if in mode 1.

My use case is that I need some custom code in my Component, but I still want to attach my applications and other Restlets via the contents of restlet.xml. I propose that ServerServlet.createComponent() be modified to allow this.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions