public URL getBookmarkableURL(FacesContext context) throws MalformedURLException {

        ExternalContext extContext = context.getExternalContext();
        return new URL(extContext.getRequestScheme(),
                extContext.getRequestServerName(),
                extContext.getRequestServerPort(),
                context.getApplication().getViewHandler().getBookmarkableURL(context,
                                                                             getToViewId(context),
                                                                             getParameters(),
                                                                             isIncludeViewParams()));
    }
public URL getBookmarkableURL ( FacesContext context ) throws MalformedURLException { ExternalContext extContext = context . getExternalContext ( ) ; return new URL ( extContext . getRequestScheme ( ) , extContext . getRequestServerName ( ) , extContext . getRequestServerPort ( ) , context . getApplication ( ) . getViewHandler ( ) . getBookmarkableURL ( context , getToViewId ( context ) , getParameters ( ) , isIncludeViewParams ( ) ) ) ; }
<p class="changed_added_2_0">Construct an absolute URL suitable for a
bookmarkable link to this <code>NavigationCase</code> instance using {@link
javax.faces.application.ViewHandler#getBookmarkableURL} on the path
portion of the url.  This URL may include view parameters specified
as metadata within the view.</p>

@param context the {@link FacesContext} for the current request

@throws MalformedURLException if the process of constructing the
URL causes this exception to be thrown.