public MockSMPClient () { super (URLHelper.getAsURI (MockWebServer.BASE_URI_HTTP)); } }
public MockSMPClient () { super (URLHelper.getAsURI (MockWebServer.BASE_URI_HTTP)); } }
/** * 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)); }
/** * 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; }
/** * @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); }
@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 (); }
@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 (); }
final URI aURI = URLHelper.getAsURI (RequestHelper.getWithoutSessionID (sRequestURL)); if (aURI != null)