当前位置: 首页>>代码示例>>Java>>正文


Java UserMessages.empty方法代码示例

本文整理汇总了Java中org.lastaflute.core.message.UserMessages.empty方法的典型用法代码示例。如果您正苦于以下问题:Java UserMessages.empty方法的具体用法?Java UserMessages.empty怎么用?Java UserMessages.empty使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.lastaflute.core.message.UserMessages的用法示例。


在下文中一共展示了UserMessages.empty方法的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: throwTooLongBoundarySizeException

import org.lastaflute.core.message.UserMessages; //导入方法依赖的package包/类
protected void throwTooLongBoundarySizeException(String contentType, int boundarySize, int limitSize) {
    final ExceptionMessageBuilder br = new ExceptionMessageBuilder();
    br.addNotice("Too long boundary size so treats it as 404.");
    br.addItem("Advice");
    br.addElement("Against for JVN14876762.");
    br.addElement("Boundary size is limited by Framework.");
    br.addElement("Too long boundary is treated as 404 because it's thought of as attack.");
    br.addElement("");
    br.addElement("While, you can override the boundary limit size");
    br.addElement(" in " + HarborMultipartRequestHandler.class.getSimpleName() + ".");
    br.addItem("Content Type");
    br.addElement(contentType);
    br.addItem("Boundary Size");
    br.addElement(boundarySize);
    br.addItem("Limit Size");
    br.addElement(limitSize);
    final String msg = br.buildExceptionMessage();
    throw new Forced404NotFoundException(msg, UserMessages.empty()); // heavy attack!? so give no page to tell wasted action
}
 
开发者ID:lastaflute,项目名称:lastaflute-example-harbor,代码行数:20,代码来源:HarborMultipartRequestHandler.java

示例2: handleForced404NotFoundRouting

import org.lastaflute.core.message.UserMessages; //导入方法依赖的package包/类
protected void handleForced404NotFoundRouting(HttpServletRequest request, String requestPath) {
    final ActionAdjustmentProvider adjustmentProvider = getActionAdjustmentProvider();
    if (adjustmentProvider.isForced404NotFoundRouting(request, requestPath)) {
        throw new Forced404NotFoundException("Forcedly 404 not found routing: " + requestPath, UserMessages.empty());
    }
}
 
开发者ID:lastaflute,项目名称:lastaflute,代码行数:7,代码来源:RequestRoutingFilter.java

示例3: handleNoRoutingRequest

import org.lastaflute.core.message.UserMessages; //导入方法依赖的package包/类
protected void handleNoRoutingRequest(HttpServletRequest request, String requestPath) {
    final ActionAdjustmentProvider adjustmentProvider = getActionAdjustmentProvider();
    if (adjustmentProvider.isNoRoutingRequestAs404NotFound(request, requestPath)) {
        throw new Forced404NotFoundException("No routing request: " + requestPath, UserMessages.empty());
    }
}
 
开发者ID:lastaflute,项目名称:lastaflute,代码行数:7,代码来源:RequestRoutingFilter.java

示例4: CrossSiteRequestForgeriesForbiddenException

import org.lastaflute.core.message.UserMessages; //导入方法依赖的package包/类
public CrossSiteRequestForgeriesForbiddenException(String msg) {
    super(msg, UserMessages.empty());
}
 
开发者ID:lastaflute,项目名称:lastaflute,代码行数:4,代码来源:CrossSiteRequestForgeriesForbiddenException.java

示例5: getClassificationUnknownCodeMessages

import org.lastaflute.core.message.UserMessages; //导入方法依赖的package包/类
protected UserMessages getClassificationUnknownCodeMessages() {
    return UserMessages.empty();
}
 
开发者ID:lastaflute,项目名称:lastaflute,代码行数:4,代码来源:RequestPathParamAnalyzer.java

示例6: getExecuteParameterMismatchMessages

import org.lastaflute.core.message.UserMessages; //导入方法依赖的package包/类
protected UserMessages getExecuteParameterMismatchMessages() {
    return UserMessages.empty();
}
 
开发者ID:lastaflute,项目名称:lastaflute,代码行数:4,代码来源:RequestPathParamAnalyzer.java

示例7: getRequestJsonParseFailureMessages

import org.lastaflute.core.message.UserMessages; //导入方法依赖的package包/类
protected UserMessages getRequestJsonParseFailureMessages() {
    return UserMessages.empty();
}
 
开发者ID:lastaflute,项目名称:lastaflute,代码行数:4,代码来源:ActionFormMapper.java

示例8: getRequestPropertyMappingFailureMessages

import org.lastaflute.core.message.UserMessages; //导入方法依赖的package包/类
protected UserMessages getRequestPropertyMappingFailureMessages() {
    return UserMessages.empty();
}
 
开发者ID:lastaflute,项目名称:lastaflute,代码行数:4,代码来源:ActionFormMapper.java

示例9: getRequestUndefinedParameterInFormMessages

import org.lastaflute.core.message.UserMessages; //导入方法依赖的package包/类
protected UserMessages getRequestUndefinedParameterInFormMessages() {
    return UserMessages.empty();
}
 
开发者ID:lastaflute,项目名称:lastaflute,代码行数:4,代码来源:ActionFormMapper.java


注:本文中的org.lastaflute.core.message.UserMessages.empty方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。