/** * @return The target URL which should be invoked. May not be * <code>null</code>. */ @Nonnull @ReturnsMutableCopy public SimpleURL getTargetURL () { return new SimpleURL (m_aTargetURL); }
/** * Constructor * * @param aURL * A URL to make requests to when when the data provided by local and * prefetch is insufficient. Required. */ public BloodhoundRemote (@Nonnull final ISimpleURL aURL) { ValueEnforcer.notNull (aURL, "URL"); m_aURL = new SimpleURL (aURL); }
/** * Constructor * * @param aURL * A URL to a JSON file containing an array of datums. */ public BloodhoundPrefetch (@Nonnull final ISimpleURL aURL) { ValueEnforcer.notNull (aURL, "URL"); m_aURL = new SimpleURL (aURL); }
/** * Constructor * * @param aURL * A URL to a JSON file containing an array of datums. */ public TypeaheadPrefetch (@Nonnull final ISimpleURL aURL) { ValueEnforcer.notNull (aURL, "URL"); m_aURL = new SimpleURL (aURL); }
@Nonnull public ISimpleURL getLinkURL () { return new SimpleURL ().setAnchor (m_sID); }
/** * Constructor * * @param aURL * A URL to make requests to when when the data provided by local and * prefetch is insufficient. */ public TypeaheadRemote (@Nonnull final ISimpleURL aURL) { ValueEnforcer.notNull (aURL, "URL"); m_aURL = new SimpleURL (aURL); }
/** * Constructor * * @param aURL * A URL to a JSON file containing an array of datums. */ public BloodhoundPrefetch (@Nonnull final ISimpleURL aURL) { ValueEnforcer.notNull (aURL, "URL"); m_aURL = new SimpleURL (aURL); }
/** * Constructor * * @param aURL * A URL to make requests to when when the data provided by local and * prefetch is insufficient. */ public TypeaheadRemote (@Nonnull final ISimpleURL aURL) { ValueEnforcer.notNull (aURL, "URL"); m_aURL = new SimpleURL (aURL); }
/** * Constructor * * @param aURL * A URL to a JSON file containing an array of datums. */ public TypeaheadPrefetch (@Nonnull final ISimpleURL aURL) { ValueEnforcer.notNull (aURL, "URL"); m_aURL = new SimpleURL (aURL); }
/** * Constructor * * @param aURL * A URL to make requests to when when the data provided by local and * prefetch is insufficient. Required. */ public BloodhoundRemote (@Nonnull final ISimpleURL aURL) { ValueEnforcer.notNull (aURL, "URL"); m_aURL = new SimpleURL (aURL); }
/** * @return A link to the start page without any session ID. Never * <code>null</code>. E.g. <code>/</code> or <code>/context</code>. * This is useful for logout links. */ @Nonnull public static SimpleURL getHomeLinkWithoutSession () { final String sContextPath = ServletContextPathHolder.getContextPath (); return new SimpleURL (sContextPath.length () == 0 ? "/" : sContextPath); }
public HCA_MailTo (@Nonnull final String sEmailAddress) { super (new SimpleURL (EURLProtocol.MAILTO.getProtocol () + sEmailAddress)); m_sEmailAddress = ValueEnforcer.notNull (sEmailAddress, "Email"); }
public HCYouTubeIFrame (@Nonnull @Nonempty final String sVideoID) { m_aVideoURL = new SimpleURL (PREFIX + sVideoID); setSrc (m_aVideoURL); }
public HCYouTubeIFrame (@Nonnull @Nonempty final String sVideoID) { m_aVideoURL = new SimpleURL (PREFIX + sVideoID); setSrc (m_aVideoURL); }
public GoMappingItem (@Nonnull @Nonempty final String sKey, final boolean bIsInternal, @Nonnull @Nonempty final String sTargetURL, final boolean bIsEditable) { this (sKey, bIsInternal, bIsInternal ? LinkHelper.getURLWithContext (sTargetURL) : new SimpleURL (sTargetURL), bIsEditable); }
@Nullable public static IHCNode createLinkedWebsite (@Nullable final String sWebsite, @Nullable final HC_Target aTarget) { if (StringHelper.hasNoText (sWebsite)) return null; if (!URLValidator.isValid (sWebsite)) return new HCTextNode (sWebsite); return new HCA (new SimpleURL (sWebsite)).setTarget (aTarget).addChild (sWebsite); } }
@Nonnull public BootstrapDropdownMenu addDropdownMenu (@Nullable final EBootstrapDropdownMenuAlignment eAlignment, @Nullable final IHCNode aText) { final IHCLI <?> aLI = addItem ().addClass (CBootstrapCSS.DROPDOWN); aLI.addChild (BootstrapDropdown.makeDropdownToggle (new HCA (new SimpleURL ()).addChild (aText))); final BootstrapDropdownMenu aMenu = aLI.addAndReturnChild (new BootstrapDropdownMenu (eAlignment)); return aMenu; } }
@Nonnull public ISimpleURL encodeURL (@Nonnull final ISimpleURL aURL) { ValueEnforcer.notNull (aURL, "URL"); // Encode only the path and copy params and anchor return new SimpleURL (encodeURL (aURL.getPath ()), aURL.getAllParams (), aURL.getAnchor ()); }
@Nonnull public ISimpleURL encodeRedirectURL (@Nonnull final ISimpleURL aURL) { ValueEnforcer.notNull (aURL, "URL"); // Encode only the path and copy params and anchor return new SimpleURL (encodeRedirectURL (aURL.getPath ()), aURL.getAllParams (), aURL.getAnchor ()); }
@Nonnull @Nonempty public static HCNodeList getDisplayNameNode (@Nonnull final ISMLInfo aObj) { return new HCNodeList ().addChild ("[" + aObj.getDisplayName () + "] ") .addChild (new HCA (new SimpleURL (aObj.getManagementServiceURL ())).setTargetBlank () .addChild (aObj.getManagementServiceURL ())) .addChild (" (" + aObj.getDNSZone () + ")"); }