@Nonnull
  public static String getURIWithContext (@Nonnull final IRequestWebScopeWithoutResponse aRequestScope,
                                          @Nonnull final String sHRef)
  {
    ValueEnforcer.notNull (aRequestScope, "RequestScope");
    ValueEnforcer.notNull (sHRef, "HRef");

    // If known protocol, keep it
    if (hasKnownProtocol (sHRef))
      return sHRef;

    final String sContextPath = aRequestScope.getContextPath ();
    return aRequestScope.encodeURL (_getURIWithContext (sContextPath, sHRef));
  }
@ Nonnull public static String getURIWithContext ( @ Nonnull final IRequestWebScopeWithoutResponse aRequestScope , @ Nonnull final String sHRef ) { ValueEnforcer . notNull ( aRequestScope , "RequestScope" ) ; ValueEnforcer . notNull ( sHRef , "HRef" ) ; if ( hasKnownProtocol ( sHRef ) ) return sHRef ; final String sContextPath = aRequestScope . getContextPath ( ) ; return aRequestScope . encodeURL ( _getURIWithContext ( sContextPath , sHRef ) ) ; }
Prefix the passed href with the relative context path in case the passed
href has no protocol yet.

@param aRequestScope
The request web scope to be used. Required for cookie-less handling.
May not be <code>null</code>.
@param sHRef
The href to be extended. May not be <code>null</code>.
@return Either the original href if already absolute or
<code>/webapp-context/<i>href</i></code> otherwise. Never
<code>null</code>.