Class TransletRule

    • Constructor Detail

      • TransletRule

        public TransletRule()
        Instantiates a new TransletRule.
    • Method Detail

      • getName

        public java.lang.String getName()
        Gets the translet name.
        Returns:
        the translet name
      • setName

        public void setName​(java.lang.String name)
        Sets the name.
        Parameters:
        name - the new name
      • getAllowedMethods

        public MethodType[] getAllowedMethods()
        Returns the array of methods allowed on the requested resource.
        Returns:
        the allowed methods
      • setAllowedMethods

        public void setAllowedMethods​(MethodType[] allowedMethods)
        Sets the array of methods allowed on the requested resource.
        Parameters:
        allowedMethods - the allowed methods
      • getNamePattern

        public WildcardPattern getNamePattern()
        Gets the name pattern.
        Returns:
        the name pattern
      • setNamePattern

        public void setNamePattern​(WildcardPattern namePattern)
        Sets the name pattern.
        Parameters:
        namePattern - the new name pattern
      • getNameTokens

        public Token[] getNameTokens()
        Gets the name tokens.
        Returns:
        the name tokens
      • setNameTokens

        public void setNameTokens​(Token[] nameTokens)
        Sets the name tokens.
        Parameters:
        nameTokens - the new name tokens
      • getScanPath

        public java.lang.String getScanPath()
        Gets the scan path.
        Returns:
        the scan path
      • setScanPath

        public void setScanPath​(java.lang.String scanPath)
        Sets the scan path.
        Parameters:
        scanPath - the new scan path
      • getMaskPattern

        public java.lang.String getMaskPattern()
        Gets the mask pattern.
        Returns:
        the mask pattern
      • setMaskPattern

        public void setMaskPattern​(java.lang.String maskPattern)
        Sets the mask pattern.
        Parameters:
        maskPattern - the new mask pattern
      • getFilterParameters

        public FilterParameters getFilterParameters()
        Gets the filter parameters.
        Returns:
        the filter parameters
      • setFilterParameters

        public void setFilterParameters​(FilterParameters filterParameters)
        Sets the filter parameters.
        Parameters:
        filterParameters - the new filter parameters
      • getRequestRule

        public RequestRule getRequestRule()
        Gets the request rule.
        Returns:
        the request rule
      • setRequestRule

        public void setRequestRule​(RequestRule requestRule)
        Sets the request rule.
        Parameters:
        requestRule - the new request rule
      • touchRequestRule

        public RequestRule touchRequestRule​(boolean explicit)
      • getContentList

        public ContentList getContentList()
        Gets the content list.
        Returns:
        the content list
      • setContentList

        public void setContentList​(ContentList contentList)
        Sets the content list.
        Parameters:
        contentList - the new content list
      • hasPathVariables

        public boolean hasPathVariables()
        Returns whether the translet name has tokens for extracting parameters or attributes.
        Returns:
        true if the translet name has tokens for extracting parameters or attributes
      • getResponseRule

        public ResponseRule getResponseRule()
        Gets the response rule.
        Returns:
        the response rule
      • setResponseRule

        public void setResponseRule​(ResponseRule responseRule)
        Sets the response rule.
        Parameters:
        responseRule - the new response rule
      • getResponseRuleList

        public java.util.List<ResponseRule> getResponseRuleList()
      • setResponseRuleList

        public void setResponseRuleList​(java.util.List<ResponseRule> responseRuleList)
      • addResponseRule

        public void addResponseRule​(ResponseRule responseRule)
      • determineResponseRule

        public void determineResponseRule()
      • setExceptionRule

        public void setExceptionRule​(ExceptionRule exceptionRule)
      • setAspectAdviceRuleRegistry

        public void setAspectAdviceRuleRegistry​(AspectAdviceRuleRegistry aspectAdviceRuleRegistry)
      • getDescription

        public java.lang.String getDescription()
        Gets the description.
        Returns:
        the description
      • setDescription

        public void setDescription​(java.lang.String description)
        Sets the description.
        Parameters:
        description - the new description
      • replicate

        public TransletRule replicate()
        Description copied from interface: Replicable
        Creates and returns a new instance after replicating a rule or Object.
        Specified by:
        replicate in interface Replicable<TransletRule>
        Returns:
        replicated rule or new instance of Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • newInstance

        public static TransletRule newInstance​(java.lang.String name,
                                               java.lang.String scanPath,
                                               java.lang.String maskPattern,
                                               MethodType[] allowedMethods)
      • newInstance

        public static TransletRule newInstance​(java.lang.String name,
                                               MethodType[] allowedMethods)