public abstract class

BaseUrlValidator

extends Object
implements ConstraintValidator<A extends Annotation, T>
java.lang.Object
   ↳ com.atlassian.bitbucket.validation.BaseUrlValidator<T extends java.lang.annotation.Annotation>
Known Direct Subclasses

Class Overview

Base class to validate the base URL of the HTTP and SSH protocols.

Summary

Fields
protected final boolean allowPath
protected final Set<String> schemes
Protected Constructors
BaseUrlValidator(boolean allowPath, String... schemes)
Public Methods
boolean isValid(String value, ConstraintValidatorContext context)
Protected Methods
boolean isValid(URI uri)
[Expand]
Inherited Methods
From class java.lang.Object
From interface javax.validation.ConstraintValidator

Fields

protected final boolean allowPath

protected final Set<String> schemes

Protected Constructors

protected BaseUrlValidator (boolean allowPath, String... schemes)

Public Methods

public boolean isValid (String value, ConstraintValidatorContext context)

Protected Methods

protected boolean isValid (URI uri)