Tabnine Logo
URLHelper.getAsURL
Code IndexAdd Tabnine to your IDE (free)

How to use
getAsURL
method
in
com.helger.commons.url.URLHelper

Best Java code snippets using com.helger.commons.url.URLHelper.getAsURL (Showing top 17 results out of 315)

origin: com.helger/ph-as4-lib

@Nullable
public String getAddressProtocol ()
{
 final URL aURL = URLHelper.getAsURL (m_sAddress);
 return aURL == null ? null : aURL.getProtocol ();
}
origin: com.helger/ph-xml

@Nonnull
public static ResourceStreamSource create (@Nonnull final URI aURI)
{
 return create (URLHelper.getAsURL (aURI));
}
origin: com.helger/ph-xml

@Nonnull
public static InputSource create (@Nonnull final URI aURI)
{
 return create (URLHelper.getAsURL (aURI));
}
origin: com.helger/peppol-sml-client

public BDMSLClient (@Nonnull final ISMLInfo aSMLInfo)
{
 super (URLHelper.getAsURL (aSMLInfo.getManagementServiceURL () + "/bdmslservice"));
}
origin: com.helger/ph-oton-core

@Nonnull
public static IReadableResource getAsResourceStatic (@Nonnull @Nonempty final String sURI)
{
 ValueEnforcer.notEmpty (sURI, "URI");
 IReadableResource ret;
 // If the URL is absolute, use it
 if (LinkHelper.hasKnownProtocol (sURI))
 {
  ret = new URLResource (URLHelper.getAsURL (sURI));
 }
 else
 {
  // Absolute paths are project relative files and therefore are relative to
  // the servlet context directory
  if (isProjectRelativeURI (sURI))
  {
   // Cut "/" to avoid recognition as absolute file on Linux!
   ret = WebFileIO.getServletContextIO ().getResource (sURI.substring (1));
  }
  else
  {
   // Defaults to class path
   ret = new ClassPathResource (sURI);
  }
 }
 return ret;
}
origin: com.helger/ph-useragent

if (URLHelper.getAsURL (sToken) != null)
 aProfileData.add (sToken);
else
origin: com.helger/peppol-smp-server-webapp

else
 final URL aURL = URLHelper.getAsURL (sManagementAddressURL);
 if (aURL == null)
  aFormErrors.addFieldError (FIELD_MANAGEMENT_ADDRESS_URL, "The Management Address URL is not a valid URL!");
origin: phax/peppol-smp-server

else
 final URL aURL = URLHelper.getAsURL (sManagementAddressURL);
 if (aURL == null)
  aFormErrors.addFieldError (FIELD_MANAGEMENT_ADDRESS_URL, "The Management Address URL is not a valid URL!");
origin: com.helger/peppol-smp-server-webapp

else
 final URL aURL = URLHelper.getAsURL (sLogicalAddress);
 if (aURL == null)
  aFormErrors.addFieldError (FIELD_LOGICAL_ADDRESS,
origin: phax/peppol-smp-server

else
 final URL aURL = URLHelper.getAsURL (sLogicalAddress);
 if (aURL == null)
  aFormErrors.addFieldError (FIELD_LOGICAL_ADDRESS,
origin: com.helger/peppol-smp-server-webapp

else
 final URL aURL = URLHelper.getAsURL (sLogicalAddress);
 if (aURL == null)
  aFormErrors.addFieldError (FIELD_LOGICAL_ADDRESS,
origin: phax/peppol-smp-server

else
 final URL aURL = URLHelper.getAsURL (sLogicalAddress);
 if (aURL == null)
  aFormErrors.addFieldError (FIELD_LOGICAL_ADDRESS,
origin: com.helger/ph-oton-core

if (StringHelper.hasText (sInitParameter))
 final URL aURL = URLHelper.getAsURL (sInitParameter);
 if (aURL != null)
origin: com.helger/peppol-smp-server-webapp

 aFormErrors.addFieldError (FIELD_REDIRECT_TO, "The Redirect URL must not be empty!");
else
 if (URLHelper.getAsURL (sRedirectTo) == null)
  aFormErrors.addFieldError (FIELD_REDIRECT_TO, "The Redirect URL is not a valid URL!");
origin: phax/peppol-smp-server

 aFormErrors.addFieldError (FIELD_REDIRECT_TO, "The Redirect URL must not be empty!");
else
 if (URLHelper.getAsURL (sRedirectTo) == null)
  aFormErrors.addFieldError (FIELD_REDIRECT_TO, "The Redirect URL is not a valid URL!");
origin: com.helger/peppol-smp-server-webapp

if (URLHelper.getAsURL (sEndpointReference) == null)
 aFormErrors.addFieldError (FIELD_ENDPOINT_REFERENCE, "The Endpoint Reference is not a valid URL!");
origin: phax/peppol-smp-server

if (URLHelper.getAsURL (sEndpointReference) == null)
 aFormErrors.addFieldError (FIELD_ENDPOINT_REFERENCE, "The Endpoint Reference is not a valid URL!");
com.helger.commons.urlURLHelpergetAsURL

Popular methods of URLHelper

  • getAsURI
  • urlDecode
  • getParsedQueryParameters
  • urlEncode

Popular in Java

  • Reactive rest calls using spring rest template
  • getResourceAsStream (ClassLoader)
  • getExternalFilesDir (Context)
  • compareTo (BigDecimal)
  • BufferedWriter (java.io)
    Wraps an existing Writer and buffers the output. Expensive interaction with the underlying reader is
  • ThreadPoolExecutor (java.util.concurrent)
    An ExecutorService that executes each submitted task using one of possibly several pooled threads, n
  • JLabel (javax.swing)
  • FileUtils (org.apache.commons.io)
    General file manipulation utilities. Facilities are provided in the following areas: * writing to a
  • Reflections (org.reflections)
    Reflections one-stop-shop objectReflections scans your classpath, indexes the metadata, allows you t
  • Option (scala)
  • Top 25 Plugins for Webstorm
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now