Package dev.amp.validator
Class ParsedUrlSpec
- java.lang.Object
-
- dev.amp.validator.ParsedUrlSpec
-
public class ParsedUrlSpec extends Object
ParsedUrlSpec is used for both ParsedAttrSpec and ParsedCdataSpec, to check URLs.- Author:
- nhant01, GeorgeLuo
-
-
Constructor Summary
Constructors Constructor Description ParsedUrlSpec(dev.amp.validator.ValidatorProtos.UrlSpec urlSpec)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcleanup()Clean up reference, improve gc performance.dev.amp.validator.ValidatorProtos.UrlSpecgetSpec()Returns the UrlSpec.booleanisAllowedProtocol(String protocol)Returns true if the protocol is found.
-
-
-
Method Detail
-
getSpec
public dev.amp.validator.ValidatorProtos.UrlSpec getSpec()
Returns the UrlSpec.- Returns:
- returns the UrlSpec.
-
isAllowedProtocol
public boolean isAllowedProtocol(String protocol)
Returns true if the protocol is found.- Parameters:
protocol- the allowed protocol.- Returns:
- returns true if the protocol is found.
-
cleanup
public void cleanup()
Clean up reference, improve gc performance.
-
-