rest - Who will create WADL file in Application based on JERSY 2.0 -
as automatically able access wadl file application without doing manual effort, through below formatted url:
http://{host}:{port}/{context_root}/{resource}/application.wadl
but need know, how generated, using jersy 2.0
api on weblogic server
rest implementation.
if automatically generated environment , api needed ?
some wiki or docs url appreciated.
i think looking jersey documentation, seems responsible wadl generation.
17.2. configuration
wadl generation enabled in jersey default. means options methods added default each resource , auto-generated /application.wadl resource deployed too. override default behavior , disable wadl generation in jersey, setup configuration property in application:
jersey.config.server.wadl.disablewadl=true
this property can setup in web.xml if jersey application deployed in servlet web.xml or property can returned application. getproperties(). see deployment chapter more information on setting application configuration properties in various deployments.
wadl support in jersey implemented via modelprocessor extension. implementation enhances application resource model adding wadl providing resources. wadl modelprocessor priority value high (i.e. priority low) should executed 1 of last model processors. therefore, modelprocessor executed before not see wadl extensions in resource model. wadl handling resource model extensions (resources , options resource methods) not added application resource model if there matching resource or resource method detected in model. in other words, if define example own options method produce "application.wadl" response content, method not overridden wadl model processor. see resource builder chapter more information on modelprocessor extension mechanism.
https://jersey.java.net/documentation/latest/wadl.html#d0e13189
Comments
Post a Comment