本文整理了Java中org.apache.wicket.request.Request.getPostParameters
方法的一些代码示例,展示了Request.getPostParameters
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Request.getPostParameters
方法的具体详情如下:
包路径:org.apache.wicket.request.Request
类名称:Request
方法名:getPostParameters
暂无
代码示例来源:origin: apache/wicket
@Override
public IRequestParameters getPostParameters()
{
return Request.this.getPostParameters();
}
代码示例来源:origin: org.apache.wicket/wicket-request
@Override
public IRequestParameters getPostParameters()
{
return Request.this.getPostParameters();
}
代码示例来源:origin: apache/wicket
/**
* @return all request parameters for this request (both POST and GET parameters)
*/
public IRequestParameters getRequestParameters()
{
return new CombinedRequestParametersAdapter(getPostParameters(), getQueryParameters());
}
代码示例来源:origin: org.apache.wicket/wicket-request
/**
* @return all request parameters for this request (both POST and GET parameters)
*/
public IRequestParameters getRequestParameters()
{
return new CombinedRequestParametersAdapter(getPostParameters(), getQueryParameters());
}
代码示例来源:origin: theonedev/onedev
@Override
protected void respond(AjaxRequestTarget target) {
IRequestParameters params = RequestCycle.get().getRequest().getPostParameters();
String fileName = params.getParameterValue("name").toString();
for (Iterator<FileItem> it = fileItems.iterator(); it.hasNext();) {
FileItem fileItem = it.next();
if (fileItem.getName().equals(fileName)) {
fileItem.delete();
it.remove();
}
}
}
代码示例来源:origin: org.onehippo.cms7/hippo-cms-api
protected Map<String, String> getParameters() {
final Request request = RequestCycle.get().getRequest();
final IRequestParameters parameters = request.getPostParameters();
return parameters.getParameterNames()
.stream()
.collect(Collectors.toMap(
name -> name,
name -> parameters.getParameterValue(name).toString()
));
}
代码示例来源:origin: com.googlecode.wicket-jquery-ui/wicket-jquery-ui-core
/**
* Gets the values of a post parameter
*
* @param name the name of the post parameter
* @return a {@link List} of {@link StringValue}
*/
public static List<StringValue> getPostParameterValues(String name)
{
final RequestCycle requestCycle = RequestCycle.get();
final IRequestParameters parameters = requestCycle.getRequest().getPostParameters();
return parameters.getParameterValues(name);
}
代码示例来源:origin: com.googlecode.wicket-jquery-ui/wicket-jquery-ui-core
/**
* Gets the value of a post parameter
*
* @param name the name of the post parameter
* @return a {@link StringValue}
*/
public static StringValue getPostParameterValue(String name)
{
final RequestCycle requestCycle = RequestCycle.get();
final IRequestParameters parameters = requestCycle.getRequest().getPostParameters();
return parameters.getParameterValue(name);
}
代码示例来源:origin: sebfz1/wicket-jquery-ui
/**
* Gets the values of a post parameter
*
* @param name the name of the post parameter
* @return a {@link List} of {@link StringValue}
*/
public static List<StringValue> getPostParameterValues(String name)
{
final RequestCycle requestCycle = RequestCycle.get();
final IRequestParameters parameters = requestCycle.getRequest().getPostParameters();
return parameters.getParameterValues(name);
}
代码示例来源:origin: org.onehippo.cms7/hippo-cms-richtext-frontend
protected Map<String, String> getParameters() {
final Request request = RequestCycle.get().getRequest();
final HashMap<String, String> parameters = new HashMap<>();
final IRequestParameters requestParameters = request.getPostParameters();
for (String key : requestParameters.getParameterNames()) {
parameters.put(key, requestParameters.getParameterValue(key).toString());
}
return parameters;
}
代码示例来源:origin: sebfz1/wicket-jquery-ui
/**
* Gets the value of a post parameter
*
* @param name the name of the post parameter
* @return a {@link StringValue}
*/
public static StringValue getPostParameterValue(String name)
{
final RequestCycle requestCycle = RequestCycle.get();
final IRequestParameters parameters = requestCycle.getRequest().getPostParameters();
return parameters.getParameterValue(name);
}
代码示例来源:origin: theonedev/onedev
@Override
protected void respond(AjaxRequestTarget target) {
IRequestParameters params = RequestCycle.get().getRequest().getPostParameters();
String encodedData = params.getParameterValue("data").toString();
byte[] bytes = Base64.decodeBase64(encodedData.getBytes());
Serializable data = (Serializable) SerializationUtils.deserialize(bytes);
onPopState(target, data);
target.appendJavaScript("onedev.server.viewState.getFromHistoryAndSetToView();");
}
代码示例来源:origin: org.apache.wicket/wicket-core
@Override
protected void onSubmit()
{
getModelObject().read(getRequest().getPostParameters());
afterSubmit();
}
};
代码示例来源:origin: apache/wicket
@Override
protected void onSubmit()
{
getModelObject().read(getRequest().getPostParameters());
afterSubmit();
}
};
代码示例来源:origin: org.wicketstuff/wicket-extjs
@Override
protected void respond(AjaxRequestTarget target) {
String button = RequestCycle.get().getRequest().getPostParameters().getParameterValue(POST_PARAM_BTN).toString();
String text = RequestCycle.get().getRequest().getPostParameters().getParameterValue(POST_PARAM_TEXT).toString();
onClick(target, button, text);
}
代码示例来源:origin: theonedev/onedev
@Override
protected void respond(AjaxRequestTarget target) {
IRequestParameters params = RequestCycle.get().getRequest().getPostParameters();
String dragData = params.getParameterValue("dragData").toString();
onDropped(target, dragData);
}
代码示例来源:origin: org.artifactory/artifactory-web-common
@Override
protected void onValidate() {
// Check the random id in the hidden field. This guards against CSRF attacks.
StringValue requestToken = getRequest().getPostParameters().getParameterValue(TOKEN_NAME);
if (!requestToken.equals(StringValue.valueOf(getToken()))) {
String message = "Attempted unauthorized form submission";
log.warn(message);
AccessLogger.unauthorizedFormSubmit(message);
throw new UnauthorizedActionException(this, new Action("submit without CSRF token"));
}
super.onValidate();
}
代码示例来源:origin: theonedev/onedev
@Override
protected void respond(AjaxRequestTarget target) {
IRequestParameters params = RequestCycle.get().getRequest().getPostParameters();
Long id = params.getParameterValue("id").toLong();
onSelect(target, OneDev.getInstance(ProjectManager.class).load(id));
}
代码示例来源:origin: theonedev/onedev
@Override
protected void respond(AjaxRequestTarget target) {
IRequestParameters params = RequestCycle.get().getRequest().getPostParameters();
Issue issue = OneDev.getInstance(IssueManager.class).load(params.getParameterValue("issue").toLong());
if (!SecurityUtils.canWriteCode(issue.getProject().getFacade()))
throw new UnauthorizedException("Permission denied");
OneDev.getInstance(IssueChangeManager.class).changeMilestone(issue, null, SecurityUtils.getUser());
target.appendJavaScript(String.format("onedev.server.issueBoards.markAccepted(%d, true);", issue.getId()));
}
代码示例来源:origin: theonedev/onedev
@Override
protected void respond(AjaxRequestTarget target) {
Long issueId = RequestCycle.get().getRequest().getPostParameters()
.getParameterValue("issue").toLong();
Issue issue = OneDev.getInstance(IssueManager.class).load(issueId);
Hibernate.initialize(issue.getProject());
Hibernate.initialize(issue.getMilestone());
Hibernate.initialize(issue.getFieldUnaries());
Hibernate.initialize(issue.getSubmitter());
send(getPage(), Broadcast.BREADTH, new IssueDragging(target, issue));
}
内容来源于网络,如有侵权,请联系作者删除!