Basic Customization > User Interface Customization > Presenting Information in the UI > URL Authorization > Solution > Solution Elements
  
Solution Elements
Your custom validator should extend com.ptc.core.ui.validation.DefaultURLValidator
You can override an existing out-of-the-box validator with your own custom validator. To do this, register your validator for the URL in WT_HOME/codebase/config/urlValidators/custom-validators.xml
Override public UIValidationStatuspreValidateAction (UIValidationKey validationKey, UIValidationCriteria validationCriteria) method.
UIValidationStatus.PERMITTED means that the URL is accessible and all other statuses means the URL is not accessible
Note that the URL Validation service will not execute other available methods in DefaultURLValidator.
Possible attributes of urlvalidator elements are listed in the following table.
Parameter
Default Value
Possible Values
Required?
Description
url
n/a
Any combination of alpha-numeric characters
Yes
The Component ID for the URL for which the validator need to be registered
requestor
n/a
A valid Java class
No
The context type of the validator. This is required if your request is type-based (for example, /tcomp/infoPage/)
class
n/a
Validator class
No
Your validator
uicomponent
n/a
No
References entry in roleaccessprefs.xml (uic.name) to specify role-based access.
* 
Either uicomponent or class is required, otherwise an error will log in the MS server start-up.