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

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

Introduction

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

Prototype

ToStringStyle SHORT_PREFIX_STYLE

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

Click Source Link

Document

The short prefix toString style.

Usage

From source file:jp.primecloud.auto.common.component.DnsStrategy.java

/**
 * TODO: /* www  .  j a  va 2s  .com*/
 *
 * @param fqdn
 */
public void deleteCanonicalName(String fqdn) {
    List<String> commands = createCommands();

    List<String> stdins = createStdinsCommon();
    stdins.addAll(createDeleteCanonicalName(fqdn));
    stdins.add("quit");

    CommandResult result = execute(commands, stdins);

    if (result.getExitValue() != 0) {
        // CNAME??
        AutoException exception = new AutoException("ECOMMON-000211", fqdn);
        exception.addDetailInfo(
                "result=" + ReflectionToStringBuilder.toString(result, ToStringStyle.SHORT_PREFIX_STYLE));
        throw exception;
    }

    // CNAME??
    long timeout = 10000L;
    long startTime = System.currentTimeMillis();
    while (true) {
        String cname = getCanonicalName(fqdn);
        if (cname == null) {
            break;
        }
        if (System.currentTimeMillis() - startTime > timeout) {
            // 
            throw new AutoException("ECOMMON-000212", fqdn, cname);
        }
        try {
            Thread.sleep(1000);
        } catch (InterruptedException ignore) {
        }
    }
}

From source file:edu.internet2.middleware.psp.spml.request.SyncResponse.java

@Override
public String toString() {
    ToStringBuilder toStringBuilder = new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE);
    toStringBuilder.appendSuper(super.toString());
    for (AddResponse response : this.getAddResponses()) {
        toStringBuilder.append(PSPUtil.toString(response));
    }//from  ww  w  .  j av a 2  s  .  co m
    for (ModifyResponse response : this.getModifyResponses()) {
        toStringBuilder.append(PSPUtil.toString(response));
    }
    for (DeleteResponse response : this.getDeleteResponses()) {
        toStringBuilder.append(PSPUtil.toString(response));
    }
    for (SynchronizedResponse response : this.getSynchronizedResponses()) {
        toStringBuilder.append(response);
    }
    return toStringBuilder.toString();
}

From source file:com.adaptris.core.MimeEncoder.java

/** @see java.lang.Object#toString() */
@Override/*from www  .  j a  va2  s.  co  m*/
public String toString() {
    return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE)
            .append("PayloadEncoding", getPayloadEncoding()).append("MetadataEncoding", getMetadataEncoding())
            .append("retainUniqueId", retainUniqueId()).toString();
}

From source file:edu.internet2.middleware.psp.util.PSPUtil.java

public static String toString(AddRequest addRequest) {
    ToStringBuilder toStringBuilder = new ToStringBuilder(addRequest, ToStringStyle.SHORT_PREFIX_STYLE);
    toStringBuilder.append("psoID", PSPUtil.toString(addRequest.getPsoID()));
    toStringBuilder.append("targetID", addRequest.getTargetId());
    toStringBuilder.append("returnData", addRequest.getReturnData());
    toStringBuilder.appendSuper(PSPUtil.toString((Request) addRequest));
    return toStringBuilder.toString();
}

From source file:edu.internet2.middleware.psp.spml.config.PsoReference.java

/** {@inheritDoc} */
public String toString() {
    ToStringBuilder toStringBuilder = new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE);
    toStringBuilder.append("ref", ref);
    toStringBuilder.append("toObject", toObject.getId());
    toStringBuilder.append("onNotFound", onNotFound);
    toStringBuilder.append("multipleResults", multipleResults);
    return toStringBuilder.toString();
}

From source file:edu.internet2.middleware.psp.spml.request.DiffResponse.java

@Override
public String toString() {
    ToStringBuilder toStringBuilder = new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE);
    toStringBuilder.appendSuper(super.toString());
    for (AddRequest request : this.getAddRequests()) {
        toStringBuilder.append("add", PSPUtil.toString(request));
    }// w  w w  . ja v a  2 s.co  m
    for (ModifyRequest request : this.getModifyRequests()) {
        toStringBuilder.append("modify", PSPUtil.toString(request));
    }
    for (DeleteRequest request : this.getDeleteRequests()) {
        toStringBuilder.append("delete", PSPUtil.toString(request));
    }
    for (SynchronizedResponse response : this.getSynchronizedResponses()) {
        toStringBuilder.append("synchronized", response.toString());
    }
    return toStringBuilder.toString();
}

From source file:edu.wisc.my.portlets.dmp.beans.MenuItem.java

/**
 * @see java.lang.Object#toString()//from  w  w  w. jav  a2s .  c o  m
 */
@Override
public String toString() {
    return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).appendSuper(super.toString())
            .append("name", this.name).append("description", this.description).append("url", this.url)
            .append("target", this.target).append("groups", this.groups).append("children", this.children)
            .append("displayStates", this.displayStates).toString();
}

From source file:com.netflix.nicobar.core.archive.ScriptModuleSpec.java

@Override
public String toString() {
    return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("moduleId", moduleId)
            .append("archiveMetadata", archiveMetadata).append("compilerPlugins", compilerPluginIds)
            .append("dependencies", moduleDependencies).toString();
}

From source file:edu.internet2.middleware.psp.util.PSPUtil.java

public static String toString(AddResponse addResponse) {
    ToStringBuilder toStringBuilder = new ToStringBuilder(addResponse, ToStringStyle.SHORT_PREFIX_STYLE);
    toStringBuilder.append("pso", PSPUtil.toString(addResponse.getPso()));
    toStringBuilder.appendSuper(PSPUtil.toString((Response) addResponse));
    return toStringBuilder.toString();
}

From source file:edu.internet2.middleware.psp.util.PSPUtil.java

public static String toString(DeleteRequest deleteRequest) {
    ToStringBuilder toStringBuilder = new ToStringBuilder(deleteRequest, ToStringStyle.SHORT_PREFIX_STYLE);
    toStringBuilder.append("psoID", PSPUtil.toString(deleteRequest.getPsoID()));
    toStringBuilder.append("recursive", deleteRequest.isRecursive());
    toStringBuilder.appendSuper(PSPUtil.toString((Request) deleteRequest));
    return toStringBuilder.toString();
}