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

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

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

origin: phax/peppol-smp-server

 public MockSMPClient ()
 {
  super (URLHelper.getAsURI (MockWebServer.BASE_URI_HTTP));
 }
}
origin: com.helger/peppol-smp-server-webapp

 public MockSMPClient ()
 {
  super (URLHelper.getAsURI (MockWebServer.BASE_URI_HTTP));
 }
}
origin: com.helger/peppol-directory-client

/**
 * Constructor with a direct PEPPOL Directory URL.
 *
 * @param sPDHost
 *        The address of the PEPPOL Directory Server including the application
 *        server context path but without the REST interface. May be http or
 *        https. Example: https://directory.peppol.eu/
 */
public PDClient (@Nonnull final String sPDHost)
{
 this (URLHelper.getAsURI (sPDHost));
}
origin: com.helger/peppol-commons

/**
 * Check if the given identifier is valid. It is valid if it is empty or a
 * valid URI.<br>
 * The scheme of the participant identifier MUST be in the form of a URI.<br>
 * The scheme of the document identifier MUST be in the form of a URI.
 *
 * @param sScheme
 *        The scheme to check.
 * @return <code>true</code> if the passed scheme is a valid identifier
 *         scheme, <code>false</code> otherwise.
 */
public static boolean isValidIdentifierScheme (@Nullable final String sScheme)
{
 if (StringHelper.hasNoText (sScheme))
  return true;
 return URLHelper.getAsURI (sScheme) != null;
}
origin: com.helger/peppol-directory-api

/**
 * @return The fixed SMP URI to be used to retrieve business cards. This
 *         document should only be used when setting up a new network and
 *         SML/DNS are not (yet) available in the system. Because it is
 *         special, it is not documented.
 */
@Nullable
public static URI getFixedSMPURI ()
{
 final String sSMPURI = getConfigFile ().getAsString ("smp.uri");
 return URLHelper.getAsURI (sSMPURI);
}
origin: phax/peppol-smp-server

@Nonnull
public URI getCurrentURI ()
{
 if (m_bUseStaticServerInfo && StaticServerInfo.isSet ())
 {
  // Do not decode params - '#' lets URI parser fail!
  return URLHelper.getAsURI (StaticServerInfo.getInstance ().getFullContextPath () +
                "/" +
                m_aUriInfo.getPath (false));
 }
 if (false)
 {
  // First version in ROOT, second in context "/test"
  // http://127.0.0.1:90/
  // http://127.0.0.1:90/test/
  m_aUriInfo.getBaseUri ();
  // iso6523-actorid-upis:0088:5798000000112
  m_aUriInfo.getPath ();
  // http://127.0.0.1:90/iso6523-actorid-upis%3A0088%3A5798000000112
  // http://127.0.0.1:90/test/iso6523-actorid-upis%3A0088%3A5798000000112
  m_aUriInfo.getAbsolutePath ();
 }
 return m_aUriInfo.getAbsolutePath ();
}
origin: com.helger/peppol-smp-server-webapp

@Nonnull
public URI getCurrentURI ()
{
 if (m_bUseStaticServerInfo && StaticServerInfo.isSet ())
 {
  // Do not decode params - '#' lets URI parser fail!
  return URLHelper.getAsURI (StaticServerInfo.getInstance ().getFullContextPath () +
                "/" +
                m_aUriInfo.getPath (false));
 }
 if (false)
 {
  // First version in ROOT, second in context "/test"
  // http://127.0.0.1:90/
  // http://127.0.0.1:90/test/
  m_aUriInfo.getBaseUri ();
  // iso6523-actorid-upis:0088:5798000000112
  m_aUriInfo.getPath ();
  // http://127.0.0.1:90/iso6523-actorid-upis%3A0088%3A5798000000112
  // http://127.0.0.1:90/test/iso6523-actorid-upis%3A0088%3A5798000000112
  m_aUriInfo.getAbsolutePath ();
 }
 return m_aUriInfo.getAbsolutePath ();
}
origin: com.helger/ph-servlet

final URI aURI = URLHelper.getAsURI (RequestHelper.getWithoutSessionID (sRequestURL));
if (aURI != null)
com.helger.commons.urlURLHelpergetAsURI

Popular methods of URLHelper

  • getAsURL
  • urlDecode
  • getParsedQueryParameters
  • urlEncode

Popular in Java

  • Reading from database using SQL prepared statement
  • setContentView (Activity)
  • getExternalFilesDir (Context)
  • getApplicationContext (Context)
  • BufferedImage (java.awt.image)
    The BufferedImage subclass describes an java.awt.Image with an accessible buffer of image data. All
  • Kernel (java.awt.image)
  • BigDecimal (java.math)
    An immutable arbitrary-precision signed decimal.A value is represented by an arbitrary-precision "un
  • Time (java.sql)
    Java representation of an SQL TIME value. Provides utilities to format and parse the time's represen
  • Arrays (java.util)
    This class contains various methods for manipulating arrays (such as sorting and searching). This cl
  • JarFile (java.util.jar)
    JarFile is used to read jar entries and their associated data from jar files.
  • Best IntelliJ plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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