org.hibernate.validator.cfg.defs

## Class URLDef

- java.lang.Object
- - org.hibernate.validator.cfg.ConstraintDef<URLDef,URL>
  - - org.hibernate.validator.cfg.defs.URLDef

-     public class URLDef
      extends ConstraintDef<URLDef,URL>

  Author:
    Hardy Ferentschik

- - ### Field Summary

    - ### Fields inherited from class org.hibernate.validator.cfg.ConstraintDef

      `constraintType, parameters`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `URLDef()`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `URLDef` | `flags(Pattern.Flag... flags)`
    `URLDef` | `host(String host)`
    `URLDef` | `port(int port)`
    `URLDef` | `protocol(String protocol)`
    `URLDef` | `regexp(String regexp)`

    - ### Methods inherited from class org.hibernate.validator.cfg.ConstraintDef

      `addParameter, groups, message, payload, toString`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- - ### Constructor Detail

    - #### URLDef

          public URLDef()

  - ### Method Detail

    - #### protocol

          public URLDef protocol(String protocol)

    - #### host

          public URLDef host(String host)

    - #### port

          public URLDef port(int port)

    - #### regexp

          public URLDef regexp(String regexp)

    - #### flags

          public URLDef flags(Pattern.Flag... flags)

Copyright © 2007-2014 Red Hat, Inc. All Rights Reserved