org.apache.commons.lang3.builder.ReflectionToStringBuilder Java Examples
The following examples show how to use
org.apache.commons.lang3.builder.ReflectionToStringBuilder.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: DumpFilter.java From uyuni with GNU General Public License v2.0 | 7 votes |
private void logAttributes(HttpServletRequest req) { Enumeration items = req.getAttributeNames(); while (items.hasMoreElements()) { String name = (String) items.nextElement(); Object obj = req.getAttribute(name); if (obj != null) { log.debug("Attribute: name [" + name + "] value [" + ReflectionToStringBuilder.toString(obj) + "]"); } else { log.debug("Attribute: name [" + name + "] value [null]"); } } }
Example #2
Source File: TournamentResultJdbcDao.java From developerWorks with Apache License 2.0 | 6 votes |
@Override public TournamentResult mapRow(ResultSet resultSet, int rowNum) throws SQLException { TournamentResult ret = new TournamentResult(); // ret.setId(resultSet.getInt("id")); ret.setYear(resultSet.getInt("year")); ret.setGameDate(resultSet.getDate("game_date")); ret.setWinningTeamName(resultSet.getString("winning_team_name")); ret.setWinningScore(resultSet.getInt("winning_score")); ret.setLosingTeamName(resultSet.getString("losing_team_name")); ret.setLosingScore(resultSet.getInt("losing_score")); // if (log.isTraceEnabled()) { log.trace("Mapped row number " + rowNum + ", Object: " + ReflectionToStringBuilder.toString(ret)); } // return ret; }
Example #3
Source File: ShiroRealm.java From springboot-shiro-cas-mybatis with MIT License | 6 votes |
@Override protected AuthenticationInfo doGetAuthenticationInfo(AuthenticationToken authenticationToken) throws AuthenticationException { //UsernamePasswordToken对象用来存放提交的登录信息 UsernamePasswordToken token=(UsernamePasswordToken) authenticationToken; log.info("验证当前Subject时获取到token为:" + ReflectionToStringBuilder.toString(token, ToStringStyle.MULTI_LINE_STYLE)); // return new SimpleAuthenticationInfo("hsjhsj","8e24137dee97c9bbddb9a0cd6e043be4" , getName()); return new SimpleAuthenticationInfo("hsjhsj","" , getName()); //查出是否有此用户 // TbUser user=null; // if(user!=null){ // 若存在,将此用户存放到登录认证info中,无需自己做密码对比,Shiro会为我们进行密码对比校验 // return new SimpleAuthenticationInfo(user.getUsername(), , getName()); // } // return null; }
Example #4
Source File: FastjsonTest.java From seed with Apache License 2.0 | 5 votes |
/** * 测试json解析为子类对象时,是否会解析包含的父类属性 */ @Test public void javabeanParse(){ UserChild uc = new UserChild(); uc.setId(2); uc.setName("玄玉"); uc.setSex("M"); String jsonStr = JSON.toJSONString(uc); System.out.println("生成了-->" + jsonStr); UserChild userChild = JSON.parseObject(jsonStr, UserChild.class); System.out.println("解析到-->" + ReflectionToStringBuilder.toString(userChild, ToStringStyle.MULTI_LINE_STYLE)); }
Example #5
Source File: WeixinHelper.java From seed with Apache License 2.0 | 5 votes |
/** * 微信支付--公众号支付--关闭订单 * <p> * 该方法会判断接口返回报文中的状态是否成功,并验签(验签失败则直接抛RuntimeException) * </p> */ public static WeixinPayCloseorderRespData payCloseorder(WeixinPayCloseorderReqData reqData){ LogUtil.getLogger().info("微信支付--公众号支付--关闭订单接口入参为{}", ReflectionToStringBuilder.toString(reqData, ToStringStyle.MULTI_LINE_STYLE)); Map<String, String> reqDataMap = BeanUtil.beanToMap(reqData); reqDataMap.put("sign", CodecUtil.buildHexSign(reqDataMap, "UTF-8", reqData.getSign_type(), WeixinTokenHolder.getWeixinMchkey(reqData.getAppid())).toUpperCase()); //发送请求 String respXml = HTTPUtil.post(WeixinConstants.URL_WEIXIN_PAY_CLOSEORDER, XmlUtil.mapToXml(reqDataMap), null); //解析返回的xml字符串(交易是否成功、验签) Map<String, String> respXmlMap = XmlUtil.xmlToMap(respXml); payVerifyIfSuccess(respXmlMap); payVerifySign(respXmlMap, reqData.getAppid()); WeixinPayCloseorderRespData respData = BeanUtil.mapTobean(respXmlMap, WeixinPayCloseorderRespData.class); LogUtil.getLogger().info("微信支付--公众号支付--关闭订单接口出参为{}", ReflectionToStringBuilder.toString(respData, ToStringStyle.MULTI_LINE_STYLE)); return respData; }
Example #6
Source File: DumpFilter.java From uyuni with GNU General Public License v2.0 | 5 votes |
private void logCookies(Cookie[] cookies) { if (cookies == null) { log.debug("There are NO cookies to log"); return; } for (int i = 0; i < cookies.length; i++) { log.debug(ReflectionToStringBuilder.toString(cookies[i])); } }
Example #7
Source File: Role.java From Spring-Security-Third-Edition with MIT License | 4 votes |
@Override public String toString() { return ReflectionToStringBuilder.toString(this); }
Example #8
Source File: Role.java From Spring-Security-Third-Edition with MIT License | 4 votes |
@Override public String toString() { return ReflectionToStringBuilder.toString(this); }
Example #9
Source File: StepInfo.java From dcos-commons with Apache License 2.0 | 4 votes |
@Override public String toString() { return ReflectionToStringBuilder.toString(this); }
Example #10
Source File: SignupForm.java From Spring-Security-Third-Edition with MIT License | 4 votes |
@Override public String toString() { return ReflectionToStringBuilder.toString(this); }
Example #11
Source File: Conference.java From spring4-sandbox with Apache License 2.0 | 4 votes |
@Override public String toString() { return ReflectionToStringBuilder.toString(this, ToStringStyle.SHORT_PREFIX_STYLE); }
Example #12
Source File: PersistentLogin.java From Spring-Security-Third-Edition with MIT License | 4 votes |
@Override public String toString() { return ReflectionToStringBuilder.toString(this); }
Example #13
Source File: DomainBaseTest.java From Cerberus with MIT License | 4 votes |
@Before public void setUp() { domainBase = new DomainBase(); TO_STRING = ReflectionToStringBuilder.toString(domainBase); }
Example #14
Source File: SteamEconSchemaItemSet.java From async-gamequery-lib with MIT License | 4 votes |
@Override public String toString() { return ReflectionToStringBuilder.toString(this, ToStringStyle.NO_CLASS_NAME_STYLE); }
Example #15
Source File: CreateEventForm.java From Spring-Security-Third-Edition with MIT License | 4 votes |
@Override public String toString() { return ReflectionToStringBuilder.toString(this); }
Example #16
Source File: DestroyOfferRecommendation.java From dcos-commons with Apache License 2.0 | 4 votes |
@Override public String toString() { return ReflectionToStringBuilder.toString(this); }
Example #17
Source File: DefaultDiscoverySpec.java From dcos-commons with Apache License 2.0 | 4 votes |
@Override public String toString() { return ReflectionToStringBuilder.toString(this); }
Example #18
Source File: Dota2MatchDetails.java From async-gamequery-lib with MIT License | 4 votes |
@Override public String toString() { return ReflectionToStringBuilder.toString(this, ToStringStyle.NO_CLASS_NAME_STYLE); }
Example #19
Source File: PersistentLogin.java From Spring-Security-Third-Edition with MIT License | 4 votes |
@Override public String toString() { return ReflectionToStringBuilder.toString(this); }
Example #20
Source File: Role.java From Spring-Security-Third-Edition with MIT License | 4 votes |
@Override public String toString() { return ReflectionToStringBuilder.toString(this); }
Example #21
Source File: Event.java From Spring-Security-Third-Edition with MIT License | 4 votes |
@Override public String toString() { return ReflectionToStringBuilder.toString(this); }
Example #22
Source File: Event.java From Spring-Security-Third-Edition with MIT License | 4 votes |
@Override public String toString() { return ReflectionToStringBuilder.toString(this); }
Example #23
Source File: CreateEventForm.java From Spring-Security-Third-Edition with MIT License | 4 votes |
@Override public String toString() { return ReflectionToStringBuilder.toString(this); }
Example #24
Source File: Resource.java From digitalocean-api-java with MIT License | 4 votes |
@Override public String toString() { return ReflectionToStringBuilder.toString(this); }
Example #25
Source File: UserObject.java From jstarcraft-core with Apache License 2.0 | 4 votes |
@Override public String toString() { return ReflectionToStringBuilder.toString(this); }
Example #26
Source File: Role.java From Spring-Security-Third-Edition with MIT License | 4 votes |
@Override public String toString() { return ReflectionToStringBuilder.toString(this); }
Example #27
Source File: RundeckCommandResponse.java From GomJabbar with Apache License 2.0 | 4 votes |
@Override public String toString() { return new ReflectionToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).toString(); }
Example #28
Source File: Images.java From digitalocean-api-java with MIT License | 4 votes |
@Override public String toString() { return ReflectionToStringBuilder.toString(this); }
Example #29
Source File: SignupForm.java From Spring-Security-Third-Edition with MIT License | 4 votes |
@Override public String toString() { return ReflectionToStringBuilder.toString(this); }
Example #30
Source File: CalendarUser.java From Spring-Security-Third-Edition with MIT License | 4 votes |
@Override public String toString() { return ReflectionToStringBuilder.toString(this); }