本文整理匯總了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();
}