當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。