Example usage for org.apache.shiro.util StringUtils toString

List of usage examples for org.apache.shiro.util StringUtils toString

Introduction

In this page you can find the example usage for org.apache.shiro.util StringUtils toString.

Prototype

public static String toString(Object[] array) 

Source Link

Document

Returns the specified array as a comma-delimited (',') string.

Usage

From source file:com.wms.studio.filter.HttpFilter.java

License:Apache License

protected int toPort(Object mappedValue) {
    String[] ports = (String[]) mappedValue;
    if (ports == null || ports.length == 0) {
        return getPort();
    }//from  ww w  . j  a v a 2 s .co  m
    if (ports.length > 1) {
        throw new ConfigurationException("PortFilter can only be configured with a single port.  You have "
                + "configured " + ports.length + ": " + StringUtils.toString(ports));
    }
    return Integer.parseInt(ports[0]);
}