You're right, looks like the noroute option is supposed to unbind, not remove. The Go client unbinds all routes from the application.

There is a way to unbind routes from the Java client, but it's hidden in the updateApplicationUris() method. If you follow to the private removeUris() method, you'll see that it unbinds routes.

So it seems that unbinding every route from an app would be simply done by passing an empty List to updateApplicationUris().

As a final note: I was actually wrong earlier when saying that createApplication() always creates a route. Passing an empty List as the `uris` parameter creates no route. Knowing this, it would be best to prevent the route creation if `noroute` is set, before calling updateApplicationUris().

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira

--
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to