@Override public void configure(final Message capabilitiesMessage) { configured = true; if (!isSSESupported()) { hosed = true; unsupportedReason = UNSUPPORTED_MESSAGE_NO_SERVER_SUPPORT; logger.warn("this browser does not support SSE"); return; } this.sseEntryPoint = URL.encode(clientMessageBus.getApplicationLocation(clientMessageBus.getInServiceEntryPoint())) + "?&sse=1&clientId=" + URL.encodePathSegment(clientMessageBus.getClientId()); }
uri = URL.encode(uri);
@Override public String encodeUrl(String url) { return URL.encode(url); } });
URL.encode(messageBus.getApplicationLocation(serviceEntryPoint)) + "?z=" + getNextRequestNumber() + "&clientId=" + URL.encodePathSegment(messageBus.getClientId()) + extraParmsString.toString() );
/** * Creates an urlencoded json object that represent target endpoint. * @return encoded json object that holds host, port and sslTarget information. */ private static String createConnectionString(String host, String port, boolean sslTarget) { return URL.encode(createConnectionJsonString(host, port, sslTarget)); }
@Override public void configure(final Message capabilitiesMessage) { configured = true; if (!isSSESupported()) { hosed = true; unsupportedReason = UNSUPPORTED_MESSAGE_NO_SERVER_SUPPORT; logger.warn("this browser does not support SSE"); return; } this.sseEntryPoint = URL.encode(clientMessageBus.getApplicationLocation(clientMessageBus.getInServiceEntryPoint())) + "?&sse=1&clientId=" + URL.encodePathSegment(clientMessageBus.getClientId()); }
/** * <p>Returns the upload URL for a given file provided by a servlet method.</p> * @param path The path of the file. */ public String getUploadFileUrl(String path) { final StringBuilder sb = new StringBuilder(GWT.getModuleBaseURL() + UPLOAD_SERVLET_URL); sb.append("?").append("path").append("=").append(URL.encode(path)); return sb.toString(); } }
/** * <p>Returns the upload URL for a given file provided by a servlet method.</p> * @param path The path of the file. */ public String getUploadFileUrl(String path) { final StringBuilder sb = new StringBuilder(GWT.getModuleBaseURL() + UPLOAD_SERVLET_URL); sb.append("?").append("path").append("=").append(URL.encode(path)); return sb.toString(); } }
/** * <p>Returns the download URL for a given file provided by a servlet method.</p> * @param path The path of the file. */ public String getDownloadFileUrl(final Path path) { final StringBuilder sb = new StringBuilder(GWT.getModuleBaseURL() + EXPORT_SERVLET_URL); sb.append("?").append("path").append("=").append(URL.encode(path.toURI())); return sb.toString(); }
/** * <p>Returns the download URL for a given file provided by a servlet method.</p> * @param path The path of the file. */ public String getDownloadFileUrl(final Path path) { final StringBuilder sb = new StringBuilder(GWT.getModuleBaseURL() + EXPORT_SERVLET_URL); sb.append("?").append("path").append("=").append(URL.encode(path.toURI())); return sb.toString(); }
public static String getDownloadUrl( final Path path ) { final StringBuilder sb = new StringBuilder( URLHelper.getServletUrl() ); sb.append( "?" ).append( FileManagerFields.FORM_FIELD_PATH ).append( "=" ).append( URL.encode(path.toURI()) ); return sb.toString(); }
@Override public IRI generateExample(EntityCrudKitPrefixSettings prefixSettings, OBOIdSuffixSettings suffixSettings) { StringBuilder sb = new StringBuilder(); for(int i = 0; i < suffixSettings.getTotalDigits() - 1; i++) { sb.append("0"); } sb.append("1"); return IRI.create(URL.encode(prefixSettings.getIRIPrefix()), sb.toString()); } }
@Override public IRI generateExample(EntityCrudKitPrefixSettings prefixSettings, UUIDSuffixSettings suffixSettings) { return IRI.create(URL.encode(prefixSettings.getIRIPrefix()), EXAMPLE_SUFFIX); } }
@Override public IRI generateExample(EntityCrudKitPrefixSettings prefixSettings, SuppliedNameSuffixSettings suffixSettings) { return IRI.create(URL.encode(prefixSettings.getIRIPrefix()), "Person"); } }
public JSONCommandRequest(final String url, final boolean usexsrf) { super(true); m_usexsrf = usexsrf; m_postURL = URL.encode(StringOps.requireTrimOrNull(url)); m_builder = new RequestBuilder(Objects.requireNonNull(RequestBuilder.POST), m_postURL); doPrepareBuilderInit(m_builder); }
private void sendRequest(RequestCallback callback, String url) { RequestBuilder builder = new RequestBuilder(RequestBuilder.GET, URL.encode(url)); builder.setHeader("accept", "application/json"); try { builder.sendRequest(null, callback); } catch (RequestException e) { // TODO Auto-generated catch block e.printStackTrace(); } }
private String createApplicationLink(String applicationName) { PlaceRequest request = new PlaceRequest(NameTokens.APPLICATIONS_PRESENTER); if (applicationName != null) { request = request.with(NameTokens.APPLICATION_NAME_PARAM, URL.encode(applicationName)); } return _presenter.getPlaceManager().buildRelativeHistoryToken(request, -1); }
private String createApplicationLink(String applicationName) { PlaceRequest request = new PlaceRequest(NameTokens.APPLICATIONS_PRESENTER); if (applicationName != null) { request = request.with(NameTokens.APPLICATION_NAME_PARAM, URL.encode(applicationName)); } return _presenter.getPlaceManager().buildRelativeHistoryToken(request, -1); }
@Override protected void doFinish(RequestBuilder rb) { create(getServiceEntryPoint() + "?" + URL.encode(data)); super.setCallback(callback); super.setContentType(contentType); super.setRequestId(id); super.doFinish(rb); } };