org.apache.clerezza.jaxrs.utils

Class TrailingSlash

    • Constructor Detail

      • TrailingSlash

        public TrailingSlash()
    • Method Detail

      • enforcePresent

        public static void enforcePresent(javax.ws.rs.core.UriInfo uriInfo)
        Checks if an slash ('/') is present at the end of the URI given by UriInfo. If not then a redirect is triggered to the URI with the slash at the end.
        Parameters:
        uriInfo -
      • enforceNotPresent

        public static void enforceNotPresent(javax.ws.rs.core.UriInfo uriInfo)
        Checks if no slash ('/') is present at the end of the URI given by UriInfo. If a slash is present, a redirect is triggered to the URI with no slash at the end.
        Parameters:
        uriInfo -

Copyright © 2014 The Apache Software Foundation. All Rights Reserved.