This is a very nice start to a framework. But although it is natural that restito would use some server dependency under the covers, the specifics of this server should not be promoted to the API. That is, I should be able to use restito without knowing what server implementation is used.
For instance, restito's Condition.method(Method) method requires a Method parameter, but the org.glassfish.grizzly.http.Method type is part of Glassfish. It would be better to use a string parameter, as in Condition.method(String). This way my code can be completely server agnostic. In addition, I can use more standard method constants, such as javax.ws.rs.Httpmethod.
This is a very nice start to a framework. But although it is natural that restito would use some server dependency under the covers, the specifics of this server should not be promoted to the API. That is, I should be able to use restito without knowing what server implementation is used.
For instance, restito's
Condition.method(Method)method requires aMethodparameter, but theorg.glassfish.grizzly.http.Methodtype is part of Glassfish. It would be better to use a string parameter, as inCondition.method(String). This way my code can be completely server agnostic. In addition, I can use more standard method constants, such asjavax.ws.rs.Httpmethod.