org.jboss.seam.rest.validation
Class MethodMetadata

java.lang.Object
  extended by org.jboss.seam.rest.validation.MethodMetadata

public class MethodMetadata
extends Object

Caches method metadata needed to perform validation of JAX-RS requests.

Author:
Jozef Hartinger

Constructor Summary
MethodMetadata(Method method, Integer messageBody, Set<Integer> validatedParameters, org.jboss.seam.rest.validation.ValidateRequest interceptorBinding)
           
 
Method Summary
 org.jboss.seam.rest.validation.ValidateRequest getInterceptorBinding()
           
 Integer getMessageBody()
          Returns the index of the message body parameter or null if the method does not contain a message body parameter.
 Method getMethod()
           
 Set<Integer> getValidatedParameters()
          Returns a set of indexes of the validated parameters.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MethodMetadata

public MethodMetadata(Method method,
                      Integer messageBody,
                      Set<Integer> validatedParameters,
                      org.jboss.seam.rest.validation.ValidateRequest interceptorBinding)
Method Detail

getMethod

public Method getMethod()

getMessageBody

public Integer getMessageBody()
Returns the index of the message body parameter or null if the method does not contain a message body parameter.


getValidatedParameters

public Set<Integer> getValidatedParameters()
Returns a set of indexes of the validated parameters.


getInterceptorBinding

public org.jboss.seam.rest.validation.ValidateRequest getInterceptorBinding()


Copyright © 2011 Seam Framework. All Rights Reserved.