本文整理了Java中org.apache.wicket.markup.html.WebMarkupContainer.getPage()
方法的一些代码示例,展示了WebMarkupContainer.getPage()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。WebMarkupContainer.getPage()
方法的具体详情如下:
包路径:org.apache.wicket.markup.html.WebMarkupContainer
类名称:WebMarkupContainer
方法名:getPage
暂无
代码示例来源:origin: apache/wicket
/**
* A convenience method to return the WebPage. Same as getPage().
*
* @return WebPage
*/
public final WebPage getWebPage()
{
return (WebPage)getPage();
}
代码示例来源:origin: org.apache.wicket/wicket-core
/**
* A convenience method to return the WebPage. Same as getPage().
*
* @return WebPage
*/
public final WebPage getWebPage()
{
return (WebPage)getPage();
}
代码示例来源:origin: org.apache.wicket/com.springsource.org.apache.wicket
/**
* A convenience method to return the WebPage. Same as getPage().
*
* @return WebPage
*/
public final WebPage getWebPage()
{
return (WebPage)getPage();
}
}
代码示例来源:origin: org.ops4j.pax.wicket/pax-wicket-service
/**
* A convenience method to return the WebPage. Same as getPage().
*
* @return WebPage
*/
public final WebPage getWebPage()
{
return (WebPage)getPage();
}
代码示例来源:origin: org.ops4j.pax.wicket/pax-wicket-service
/**
* Gets the markup type for this component.
*
* @return Markup type of HTML
*/
@Override
public String getMarkupType()
{
return getPage().getMarkupType();
}
代码示例来源:origin: org.apache.wicket/com.springsource.org.apache.wicket
/**
* Gets the markup type for this component.
*
* @return Markup type of HTML
*/
public String getMarkupType()
{
return getPage().getMarkupType();
}
代码示例来源:origin: org.onehippo.cms7/hippo-cms-api
/**
* Create a multi-part request containing uploading files that supports disk caching.
*
* @param request
* @return the multi-part request or exception thrown if there's any error.
* @throws FileUploadException
*/
private MultipartServletWebRequest createMultipartWebRequest(final ServletWebRequest request) throws FileUploadException {
DiskFileItemFactory diskFileItemFactory = new DiskFileItemFactory(Application.get().getResourceSettings().getFileCleaner()) {
@Override
public FileItem createItem(String fieldName, String contentType, boolean isFormField, String fileName) {
FileItem item = super.createItem(fieldName, contentType, isFormField, fileName);
return new TemporaryFileItem(item);
}
};
try {
long contentLength = Long.valueOf(request.getHeader("Content-Length"));
if (contentLength > 0) {
return request.newMultipartWebRequest(Bytes.bytes(contentLength), container.getPage().getId(), diskFileItemFactory);
} else {
throw new FileUploadException("Invalid file upload content length");
}
} catch (NumberFormatException e) {
throw new FileUploadException("Invalid file upload content length", e);
}
}
代码示例来源:origin: org.onehippo.cms7/hippo-cms-api
private void setResponse(final ServletWebRequest request, final String responseContent) {
final Application app = Application.get();
final String encoding = app.getRequestCycleSettings().getResponseRequestEncoding();
final String contentType;
if (wantsHtml(request)) {
contentType = "text/html; charset=" + encoding;
} else {
contentType = APPLICATION_JSON;
}
TextRequestHandler textRequestHandler = new TextRequestHandler(contentType, encoding, responseContent);
RequestCycle.get().scheduleRequestHandlerAfterCurrent(textRequestHandler);
// touch page and commit request so page gets released (detached)
final Session session = Session.get();
final IPageManager pageManager = session.getPageManager();
final Page page = container.getPage();
pageManager.touchPage(page);
pageManager.commitRequest();
}
内容来源于网络,如有侵权,请联系作者删除!