Class AbstractRestPublishService.MappingInfo

    • Field Detail

      • method

        protected java.lang.reflect.Method method
        The target method.
      • path

        protected java.lang.String path
        The url path.
      • producedtypes

        protected java.util.List<java.lang.String> producedtypes
        The accepted media types for the response.
      • consumedtypes

        protected java.util.List<java.lang.String> consumedtypes
        The accepted media types for consumption.
    • Constructor Detail

      • MappingInfo

        public MappingInfo()
        Create a new mapping info.
    • Method Detail

      • getMethod

        public java.lang.reflect.Method getMethod()
        Get the method.
        Returns:
        The method
      • setMethod

        public void setMethod​(java.lang.reflect.Method method)
        Set the method.
        Parameters:
        method - The method to set
      • getPath

        public java.lang.String getPath()
        Get the path.
        Returns:
        The path
      • setPath

        public void setPath​(java.lang.String path)
        Set the path.
        Parameters:
        path - The path to set
      • getProducedMediaTypes

        public java.util.List<java.lang.String> getProducedMediaTypes()
        Get the respmediatypes.
        Returns:
        The respmediatypes
      • setProducedMediaTypes

        public void setProducedMediaTypes​(java.util.List<java.lang.String> respmediatypes)
        Set the response mediatypes.
        Parameters:
        respmediatypes - The response mediatypes to set
      • addProducedMediaType

        public void addProducedMediaType​(java.lang.String type)
      • getConsumedMediaTypes

        public java.util.List<java.lang.String> getConsumedMediaTypes()
        Get the consumedmediatypes.
        Returns:
        The consumedtypes
      • setConsumedMediaTypes

        public void setConsumedMediaTypes​(java.util.List<java.lang.String> respmediatypes)
        Set the respmediatypes.
        Parameters:
        consumedtypes - The consumedtypes to set
      • addConsumedMediaType

        public void addConsumedMediaType​(java.lang.String type)
      • isEmpty

        public boolean isEmpty()
        Test if has no settings.