Ticket #362 (closed task: fixed)
Remove dependency on deprecated stuff in restlet.org 2.0
| Reported by: | mpo | Owned by: | mpo |
|---|---|---|---|
| Priority: | major | Milestone: | 0.4 |
| Component: | -- unknown -- | Version: | 2.x |
| Keywords: | Cc: | kauri-discuss@… |
Description
One important issue in this respect has been reported before under #213
However there is more to be done as has become obvious since restlet removed deprecated api stuff in trunk: http://restlet.tigris.org/source/browse/restlet?view=rev&revision=6867
I'm creating this issue as a central point listing all related changes in our code base.
Change History
comment:2 Changed 3 years ago by mpo
Made some more progress here. Things to note:
- org.restlet.Request (borrowing from org.restlet.Message) has its #getEntityAsForm() removed. The same is available via getResourceRef().getQueryAsForm()
see http://permalink.gmane.org/gmane.comp.java.restlet/12678
- org.restlet.Response no longer has a setChallengeRequest() one should in stead add the request to the list of getChallengeRequests()
comment:3 Changed 3 years ago by mpo
I've just published svn6875 of restlet (2.1-dev) to the maven repo for building
Will upgrade the pom, and commit all needed code changes next.
Note however in the follow up of #349 that the inheritance reverse (in restlet.org) between TemplateRoute? and Route creates an incompatible change between 2.1 and 2.0: so there is more at hand then just deprecation and so we can't easily have (AFAICS) code that builds against both versions.
Simple renames:
More subtle:
needs some more detail checking to understand the impact
Note however that the useful methodnames all have dropped their handleSomeActionPhrase() signature in favour of more direct regognisable http-method-like() names to be more in line with the uniform interface.
Additionally init() is now final, you should override doInit() for any specific post-install stuff