Example usage for java.lang String concat

List of usage examples for java.lang String concat

Introduction

In this page you can find the example usage for java.lang String concat.

Prototype

public String concat(String str) 

Source Link

Document

Concatenates the specified string to the end of this string.

Usage

From source file:fi.csc.mobileauth.comm.CommonsEventIdGenerator.java

public String generateEventId(String prefix) {
    String eventId = prefix.toUpperCase();
    String randomPart = RandomStringUtils.randomAlphanumeric(idLength - prefix.length()).toUpperCase();
    return eventId.concat(randomPart);
}

From source file:gumga.framework.presentation.api.AbstractReportAPI.java

protected String getFullPath(String folder, String file) {
    String sep = folder.endsWith(File.separator) ? "" : File.separator;
    return folder.concat(sep).concat(file);
}

From source file:co.id.app.sys.util.StringUtils.java

public static String escapeSQLLike(String value) {
    return value.concat(" ESCAPE '$'");
}

From source file:com.spectralogic.ds3cli.command.PutJob.java

@Override
public DefaultResult call() throws Exception {
    final ModifyJobSpectraS3Request request = new ModifyJobSpectraS3Request(jobId);
    if (priority != null) {
        request.withPriority(priority);/* w w w . j ava2  s . c o  m*/
    }
    getClient().modifyJobSpectraS3(request);

    String result = "Success: Modified job with job id '" + jobId.toString() + "'";
    if (priority != null) {
        result = result.concat(" with priority " + priority.toString());
    }
    return new DefaultResult(result + ".");
}

From source file:org.wso2.carbon.esb.passthru.transport.test.ESBJAVA3022SendingSoapRequestAfterRestRequestTestCase.java

@Test(groups = "wso2.esb", description = "test to verify that the soap builder/formatter is invoked properly"
        + "when the soap request is made after rest request.")
public void testSendingSoapCallAfterRestCall() throws Exception {
    String restURL = getApiInvocationURL("api_poc_messagetype");//esbServer.getServiceUrl() + "/testmessagetype";
    DefaultHttpClient httpclient = new DefaultHttpClient();
    HttpGet request = new HttpGet(restURL);
    HttpResponse response = httpclient.execute(request);
    BufferedReader rd = new BufferedReader(new InputStreamReader(response.getEntity().getContent()));
    String responseText = "";
    String line = "";
    while ((line = rd.readLine()) != null) {
        responseText = responseText.concat(line);
    }//from  w  w  w  .j a va 2s.co  m
    assertFalse(responseText.contains("soapenv:Envelope"),
            "Another <soapenv:Envelope> tag found inside soap body.");
    assertFalse(responseText.contains("soapenv:Body"), "Another <soapenv:Body> tag found inside soap body.");
}

From source file:com.vmware.identity.idm.server.IdmLoginManager.java

private File getSecretFileWindows() {

    IRegistryAdapter regAdapter = RegistryAdapterFactory.getInstance().getRegistryAdapter();

    IRegistryKey rootKey = regAdapter.openRootKey((int) RegKeyAccess.KEY_READ);
    try {//from  ww  w  .  j a va2  s  .c  o m
        String configPath = regAdapter.getStringValue(rootKey, WIN_REG_PATH, WIN_REG_KEY, false);
        return new File(configPath.concat(KEYS).concat(SECRET_FILE));
    } finally {
        if (rootKey != null)
            rootKey.close();
    }
}

From source file:it.cnr.icar.eric.server.persistence.rdb.UsageParameterDAO.java

protected void loadObject(Object obj, ResultSet rs) throws RegistryException {
    try {/*from   w w w.ja v a  2s  .  co  m*/
        if (!(obj instanceof java.lang.String)) {
            throw new RegistryException(ServerResourceBundle.getInstance()
                    .getString("message.javaLangStringExpected", new Object[] { obj }));
        }

        String value = (String) obj;
        value.concat(rs.getString("value"));
    } catch (SQLException e) {
        log.error(ServerResourceBundle.getInstance().getString("message.CaughtException1"), e);
        throw new RegistryException(e);
    }
}

From source file:com.adobe.acs.commons.util.InfoWriterTest.java

@Test
public void testPrint_OnlyMessage() throws Exception {
    String expected = "hello world";
    iw.message(expected);/* www  . j a  v a  2 s. c o  m*/

    assertEquals(expected.concat(LS), iw.toString());
}

From source file:org.jasig.portlet.widget.servlet.mvc.DictionaryDataController.java

/**
 * Get a cache key for the specified word and dictionary combination.
 * /*from w w w .j a v a  2s  .  com*/
 * @param word
 * @param dict
 * @return
 */
protected String getCacheKey(String word, String dict) {
    return dict.concat(".").concat(word);
}

From source file:com.adobe.acs.commons.util.InfoWriterTest.java

@Test
public void testEnd() throws Exception {
    String expected = StringUtils.repeat("-", 80);

    iw.end();/*from ww  w  .ja v a 2 s .  c o m*/

    assertEquals(expected.concat(LS), iw.toString());
}