本文整理汇总了Java中org.apache.wicket.Response类的典型用法代码示例。如果您正苦于以下问题:Java Response类的具体用法?Java Response怎么用?Java Response使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
Response类属于org.apache.wicket包,在下文中一共展示了Response类的17个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: onComponentTagBody
import org.apache.wicket.Response; //导入依赖的package包/类
public void onComponentTagBody(MarkupStream markupStream, ComponentTag openTag) {
Response response = getResponse();
response.write("\n");
// add all object's parameters:
for (String name : getParameterNames()) {
String value = getValue(name);
if (value != null) {
response.write("<param name=\"");
response.write(name);
response.write("\" value=\"");
response.write(value);
response.write("\"/>\n");
}
}
super.onComponentTagBody(markupStream, openTag);
}
开发者ID:warpfork,项目名称:gitblit,代码行数:19,代码来源:ObjectContainer.java
示例2: OntopolySession
import org.apache.wicket.Response; //导入依赖的package包/类
protected OntopolySession(Request request, Response response, OntopolyApplication ontopolyApplication) {
super(request);
this.accessStrategy = ontopolyApplication.newAccessStrategy();
// attempt to automatically login user
if (accessStrategy.isEnabled()) {
WebRequest wr = (WebRequest)request;
User authenticatedUser = this.accessStrategy.autoAuthenticate(wr.getHttpServletRequest());
if (authenticatedUser != null)
setUser(authenticatedUser);
}
// set locale
// setLocale(new Locale("no"));
}
开发者ID:ontopia,项目名称:ontopia,代码行数:16,代码来源:OntopolySession.java
示例3: addParameter
import org.apache.wicket.Response; //导入依赖的package包/类
private void addParameter(Response response, String name, String value) {
response.write(" ");
response.write(name);
response.write("=\"");
response.write(value);
response.write("\"");
}
开发者ID:warpfork,项目名称:gitblit,代码行数:8,代码来源:ShockWaveComponent.java
示例4: newSession
import org.apache.wicket.Response; //导入依赖的package包/类
@Override
public final Session newSession(Request request, Response response) {
GitBlitWebSession gitBlitWebSession = new GitBlitWebSession(request);
String forcedLocale = GitBlit.getString(Keys.web.forceDefaultLocale, null);
if (!StringUtils.isEmpty(forcedLocale)) {
gitBlitWebSession.setLocale(new Locale(forcedLocale));
}
return gitBlitWebSession;
}
开发者ID:warpfork,项目名称:gitblit,代码行数:11,代码来源:GitBlitWebApp.java
示例5: newRequestCycle
import org.apache.wicket.Response; //导入依赖的package包/类
@Override
public RequestCycle newRequestCycle(Request request, Response response) {
// WebRequest webRequest = (WebRequest) request;
// String displayLang = webRequest.getParameter(BaseConstellioPage.DISPLAY_LANG_PARAM);
// if (StringUtils.isNotBlank(displayLang)) {
// for (Locale supportedLocale : ConstellioSpringUtils.getSupportedLocales()) {
// if (supportedLocale.getLanguage().equals(displayLang)) {
// ConstellioSession.get().changeLocale(supportedLocale);
// break;
// }
// }
// }
return new PersistenceAwareWebRequestCycle(this, (WebRequest) request, response);
}
开发者ID:BassJel,项目名称:Jouve-Project,代码行数:15,代码来源:ConstellioApplication.java
示例6: renderChoice
import org.apache.wicket.Response; //导入依赖的package包/类
@SuppressWarnings("rawtypes")
@Override
protected void renderChoice(Object object, Response response,
String criteria) {
if (object instanceof Map.Entry) {
Map.Entry entry = (Map.Entry) object;
response.write(getTextValue(entry.getKey().toString(), entry.getValue()));
} else {
response.write(getTextValue(object));
}
}
开发者ID:BassJel,项目名称:Jouve-Project,代码行数:14,代码来源:WordsAndValueAutoCompleteRenderer.java
示例7: newRequestCycle
import org.apache.wicket.Response; //导入依赖的package包/类
@Override
public final RequestCycle newRequestCycle(final Request request, final Response response) {
return new InventoryRequestCycle(this, (WebRequest) request, (WebResponse) response);
}
开发者ID:openNaEF,项目名称:openNaEF,代码行数:5,代码来源:MplsnmsDiffConfigurationApplication.java
示例8: InventoryRequestCycle
import org.apache.wicket.Response; //导入依赖的package包/类
public InventoryRequestCycle(WebApplication application, WebRequest request, Response response) {
super(application, request, response);
}
开发者ID:openNaEF,项目名称:openNaEF,代码行数:4,代码来源:InventoryRequestCycle.java
示例9: OntopolyRequestCycle
import org.apache.wicket.Response; //导入依赖的package包/类
public OntopolyRequestCycle(OntopolyApplication application, Request request, Response response) {
super(application, (WebRequest)request, response);
}
开发者ID:ontopia,项目名称:ontopia,代码行数:4,代码来源:OntopolyRequestCycle.java
示例10: newRequestCycle
import org.apache.wicket.Response; //导入依赖的package包/类
@Override
public RequestCycle newRequestCycle(Request request, Response response) {
return new OntopolyRequestCycle(this, request, response);
}
开发者ID:ontopia,项目名称:ontopia,代码行数:5,代码来源:OntopolyApplication.java
示例11: newSession
import org.apache.wicket.Response; //导入依赖的package包/类
@Override
public Session newSession(Request request, Response response) {
return new OntopolySession(request, response, this);
}
开发者ID:ontopia,项目名称:ontopia,代码行数:5,代码来源:OntopolyApplication.java
示例12: AssociationFieldAutoCompleteTextField
import org.apache.wicket.Response; //导入依赖的package包/类
public AssociationFieldAutoCompleteTextField(String id, IModel<Topic> model, final RoleFieldModel valueFieldModel) {
super(id);
AutoCompleteSettings opts = new AutoCompleteSettings();
opts.setCssClassName("ontopoly-autocompleter");
opts.setAdjustInputWidth(false);
opts.setPreselect(true);
this.textField = new AutoCompleteTextField<Topic>("autoComplete", model, Topic.class, new AbstractAutoCompleteRenderer<Topic>() {
@Override
protected String getTextValue(Topic o) {
return TOPIC_CONVERTER.convertToString(o);
}
@Override
protected void renderChoice(Topic o, Response response, String criteria) {
response.write(o.getName());
}}, opts) {
@Override
public IConverter getConverter(Class<?> type) {
if (Topic.class.equals(type)) {
return new TopicConverter();
} else {
return super.getConverter(type);
}
}
@Override
protected Iterator<Topic> getChoices(String input) {
List<Topic> result = new ArrayList<Topic>(valueFieldModel.getRoleField().searchAllowedPlayers(input));
filterPlayers(result);
Collections.sort(result, TopicComparator.INSTANCE);
return result.iterator();
}
@Override
protected void onModelChanged() {
super.onModelChanged();
Topic topic = getModelObject();
if (topic != null) {
AssociationFieldAutoCompleteTextField.this.onTopicSelected(topic);
}
}
};
add(textField);
}
开发者ID:ontopia,项目名称:ontopia,代码行数:47,代码来源:AssociationFieldAutoCompleteTextField.java
示例13: newSession
import org.apache.wicket.Response; //导入依赖的package包/类
@Override
public Session newSession(Request request, Response response) {
return new DemoSession(request);
}
开发者ID:r-h,项目名称:wicket-notes-demo,代码行数:5,代码来源:WicketApplication.java
示例14: newSession
import org.apache.wicket.Response; //导入依赖的package包/类
@Override
public Session newSession(Request request, Response response) {
return new FMBrowserSession(request);
}
开发者ID:apache,项目名称:oodt,代码行数:5,代码来源:FMBrowserAppBase.java
示例15: newSession
import org.apache.wicket.Response; //导入依赖的package包/类
/**
* Method for creating a new custom blog session. Overrides
* {@link WebApplication#newSession()}.
*/
@Override
public Session newSession(Request request, Response response) {
return new BlogSession(request);
}
开发者ID:rla,项目名称:old-blog,代码行数:9,代码来源:BlogApplication.java
示例16: PersistenceAwareWebRequestCycle
import org.apache.wicket.Response; //导入依赖的package包/类
public PersistenceAwareWebRequestCycle(WebApplication application, WebRequest request, Response response) {
super(application, request, response);
}
开发者ID:BassJel,项目名称:Jouve-Project,代码行数:4,代码来源:PersistenceAwareWebRequestCycle.java
示例17: newSession
import org.apache.wicket.Response; //导入依赖的package包/类
@Override
public synchronized Session newSession(Request request, Response response) {
return new ConstellioSession(request);
}
开发者ID:BassJel,项目名称:Jouve-Project,代码行数:5,代码来源:ConstellioApplication.java
注:本文中的org.apache.wicket.Response类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论