Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-3669

RESTEasy - RegistryStatsResource end-point is not described in documentation

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Done
    • Icon: Major Major
    • 7.3.z.GA
    • 7.0.0.ER6, 7.2.0.GA
    • Documentation
    • EAP DOC Sprint 7:Mar29 - Apr 9

      Guide: Developing Web Services Applications

      RESTEasy - RegistryStatsResource end-point is not described in documentation.

      • You can get information about application's REST end-points by RegistryStatsResource.
      • RegistryStatsResource needs to be registered as resource in RESTEasy, for example by this context parameter in web.xml:
            <context-param>
                <param-name>resteasy.resources</param-name>
                <param-value>org.jboss.resteasy.plugins.stats.RegistryStatsResource</param-value>
            </context-param>
        
      • information about application REST end-points are available on:
        http://${hostname}:${port}/{application_prefix_url}/resteasy/registry
        
      • default response format is in XML, but client can require also JSON format
      • example of response:
            <registry>
                <resource uriTemplate="/resource">
                    <delete class="org.jboss.resteasy.test.providers.jaxb.resource.StatsResource" method="delete"
                            invocations="0"/>
                    <head class="org.jboss.resteasy.test.providers.jaxb.resource.StatsResource" method="head" invocations="0"/>
                </resource>
                <resource uriTemplate="/locator">
                    <locator class="org.jboss.resteasy.test.providers.jaxb.resource.StatsResource" method="getLocator"/>
                </resource>
                <resource uriTemplate="/resteasy/registry">
                    <get class="org.jboss.resteasy.plugins.stats.RegistryStatsResource" method="get" invocations="2">
                        <produces>application/xml</produces>
                        <produces>application/json</produces>
                    </get>
                </resource>
                <resource uriTemplate="/entry/{foo:.*}">
                    <post class="org.jboss.resteasy.test.providers.jaxb.resource.StatsResource" method="post" invocations="0">
                        <produces>text/xml</produces>
                        <consumes>application/json</consumes>
                    </post>
                    <put class="org.jboss.resteasy.test.providers.jaxb.resource.StatsResource" method="put" invocations="0">
                        <produces>text/xml</produces>
                        <consumes>application/json</consumes>
                    </put>
                </resource>
            </registry>
        
      • this feature is not part of JAX-RS 2.0 specification

            amehenda@redhat.com Ashwin Mehendale
            mkopecky@redhat.com Marek Kopecky
            Marek Kopecky Marek Kopecky
            Marek Kopecky Marek Kopecky
            Votes:
            0 Vote for this issue
            Watchers:
            10 Start watching this issue

              Created:
              Updated:
              Resolved: