本文整理汇总了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
}
示例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());
}
}
示例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());
}
}
示例4: CrossSiteRequestForgeriesForbiddenException
import org.lastaflute.core.message.UserMessages; //导入方法依赖的package包/类
public CrossSiteRequestForgeriesForbiddenException(String msg) {
super(msg, UserMessages.empty());
}
示例5: getClassificationUnknownCodeMessages
import org.lastaflute.core.message.UserMessages; //导入方法依赖的package包/类
protected UserMessages getClassificationUnknownCodeMessages() {
return UserMessages.empty();
}
示例6: getExecuteParameterMismatchMessages
import org.lastaflute.core.message.UserMessages; //导入方法依赖的package包/类
protected UserMessages getExecuteParameterMismatchMessages() {
return UserMessages.empty();
}
示例7: getRequestJsonParseFailureMessages
import org.lastaflute.core.message.UserMessages; //导入方法依赖的package包/类
protected UserMessages getRequestJsonParseFailureMessages() {
return UserMessages.empty();
}
示例8: getRequestPropertyMappingFailureMessages
import org.lastaflute.core.message.UserMessages; //导入方法依赖的package包/类
protected UserMessages getRequestPropertyMappingFailureMessages() {
return UserMessages.empty();
}
示例9: getRequestUndefinedParameterInFormMessages
import org.lastaflute.core.message.UserMessages; //导入方法依赖的package包/类
protected UserMessages getRequestUndefinedParameterInFormMessages() {
return UserMessages.empty();
}