Example usage for org.apache.commons.lang3.builder ToStringStyle SHORT_PREFIX_STYLE

List of usage examples for org.apache.commons.lang3.builder ToStringStyle SHORT_PREFIX_STYLE

Introduction

In this page you can find the example usage for org.apache.commons.lang3.builder ToStringStyle SHORT_PREFIX_STYLE.

Prototype

ToStringStyle SHORT_PREFIX_STYLE

To view the source code for org.apache.commons.lang3.builder ToStringStyle SHORT_PREFIX_STYLE.

Click Source Link

Document

The short prefix toString style.

Usage

From source file:ca.uhn.fhir.rest.param.DateParam.java

@Override
public String toString() {
    ToStringBuilder b = new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE);
    b.append("prefix", getPrefix());
    b.append("value", getValueAsString());
    return b.build();
}

From source file:gobblin.writer.http.AbstractHttpWriter.java

/**
 * Default implementation where any status code equal to or greater than 400 is regarded as a failure.
 * {@inheritDoc}//from  www  .ja  v  a  2  s. c o m
 * @see gobblin.writer.http.HttpWriterDecoration#processResponse(org.apache.http.HttpResponse)
 */
@Override
public void processResponse(CloseableHttpResponse response) throws IOException, UnexpectedResponseException {
    if (response.getStatusLine().getStatusCode() >= 400) {
        if (response.getEntity() != null) {
            throw new RuntimeException("Failed. " + EntityUtils.toString(response.getEntity()) + " , response: "
                    + ToStringBuilder.reflectionToString(response, ToStringStyle.SHORT_PREFIX_STYLE));
        }
        throw new RuntimeException("Failed. Response: "
                + ToStringBuilder.reflectionToString(response, ToStringStyle.SHORT_PREFIX_STYLE));
    }
}

From source file:com.mirth.connect.model.DatabaseSettings.java

@Override
public String toAuditString() {
    return ToStringBuilder.reflectionToString(this, ToStringStyle.SHORT_PREFIX_STYLE).toString();
}

From source file:com.zhuangjy.dao.ReflectionUtil.java

/**
 * ??toString()????logger debug//from  www  . jav  a 2s. co m
 * 
 * @param obj
 *            ??
 * @return toString result
 * @since 2.0
 */
public static String objectToString(Object obj) {
    return ToStringBuilder.reflectionToString(obj, ToStringStyle.SHORT_PREFIX_STYLE);
}

From source file:com.comcast.viper.flume2storm.connection.parameters.KryoNetConnectionParameters.java

/**
 * @see java.lang.Object#toString()/*from   w ww . ja  v  a 2  s .c  o m*/
 */
@Override
public String toString() {
    return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("address", address)
            .append("port", port).append("objectBufferSize", objectBufferSize)
            .append("writeBufferSize", writeBufferSize).toString();
}

From source file:com.comcast.viper.flume2storm.connection.KryoNetParameters.java

/**
 * @see java.lang.Object#toString()/*from  ww  w  .  j  a  v  a 2s .  c  o  m*/
 */
@Override
public String toString() {
    return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE)
            .append("connectionTimeout", connectionTimeout).append("retrySleepDelay", retrySleepDelay)
            .append("reconnectionDelay", reconnectionDelay).append("terminationTimeout", terminationTimeout)
            .append("maxRetries", maxRetries).toString();
}

From source file:com.norconex.collector.http.url.impl.TikaLinkExtractor.java

@Override
public String toString() {
    return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("contentTypes", contentTypes)
            .append("ignoreNofollow", ignoreNofollow).append("keepReferrerData", keepReferrerData).toString();
}

From source file:com.mgmtp.jfunk.core.module.TestModuleImpl.java

@Override
public String toString() {
    ToStringBuilder tsb = new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE);
    tsb.append("name", getName());
    tsb.append("executionMode", executionMode);
    tsb.append("breakIndex", breakIndex);
    return tsb.toString();
}

From source file:com.norconex.collector.http.redirect.impl.GenericRedirectURLProvider.java

@Override
public String toString() {
    return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE)
            .append("fallbackCharset", fallbackCharset).toString();
}

From source file:ca.uhn.fhir.jpa.entity.TermConcept.java

@Override
public String toString() {
    return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("code", myCode)
            .append("display", myDisplay).build();
}