本文整理了Java中org.apache.catalina.Wrapper.setMultipartConfigElement()
方法的一些代码示例,展示了Wrapper.setMultipartConfigElement()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Wrapper.setMultipartConfigElement()
方法的具体详情如下:
包路径:org.apache.catalina.Wrapper
类名称:Wrapper
方法名:setMultipartConfigElement
[英]Set the multi-part configuration for the associated servlet. To clear the multi-part configuration specify null
as the new value.
[中]设置关联servlet的多部分配置。要清除多部件配置,请指定null
作为新值。
代码示例来源:origin: OryxProject/oryx
wrapper.setMultipartConfigElement(new MultipartConfigElement(""));
代码示例来源:origin: codefollower/Tomcat-Research
@Override
public void setMultipartConfig(MultipartConfigElement multipartConfig) {
wrapper.setMultipartConfigElement(multipartConfig);
}
代码示例来源:origin: org.apache.geronimo.ext.tomcat/catalina
@Override
public void setMultipartConfig(MultipartConfigElement multipartConfig) {
wrapper.setMultipartConfigElement(multipartConfig);
}
代码示例来源:origin: com.ovea.tajin.server/tajin-server-tomcat7
@Override
public void setMultipartConfig(MultipartConfigElement multipartConfig) {
wrapper.setMultipartConfigElement(multipartConfig);
}
代码示例来源:origin: com.ovea.tajin.server/tajin-server-jetty9
@Override
public void setMultipartConfig(MultipartConfigElement multipartConfig) {
wrapper.setMultipartConfigElement(multipartConfig);
}
代码示例来源:origin: org.apache.tomcat/tomcat-catalina
@Override
public void setMultipartConfig(MultipartConfigElement multipartConfig) {
wrapper.setMultipartConfigElement(multipartConfig);
}
代码示例来源:origin: org.ops4j.pax.tipi/org.ops4j.pax.tipi.tomcat-embed-core
@Override
public void setMultipartConfig(MultipartConfigElement multipartConfig) {
wrapper.setMultipartConfigElement(multipartConfig);
}
代码示例来源:origin: com.ovea.tajin.servers/tajin-server-jetty9
@Override
public void setMultipartConfig(MultipartConfigElement multipartConfig) {
wrapper.setMultipartConfigElement(multipartConfig);
}
代码示例来源:origin: org.apache.catalina/com.springsource.org.apache.catalina
@Override
public void setMultipartConfig(MultipartConfigElement multipartConfig) {
wrapper.setMultipartConfigElement(multipartConfig);
}
代码示例来源:origin: org.apache.geronimo.ext.tomcat/catalina
multipartdef.getMaxRequestSize()!= null &&
multipartdef.getFileSizeThreshold() != null) {
wrapper.setMultipartConfigElement(new MultipartConfigElement(
multipartdef.getLocation(),
Long.parseLong(multipartdef.getMaxFileSize()),
multipartdef.getFileSizeThreshold())));
} else {
wrapper.setMultipartConfigElement(new MultipartConfigElement(
multipartdef.getLocation()));
代码示例来源:origin: com.ovea.tajin.servers/tajin-server-jetty9
multipartdef.getMaxRequestSize()!= null &&
multipartdef.getFileSizeThreshold() != null) {
wrapper.setMultipartConfigElement(new MultipartConfigElement(
multipartdef.getLocation(),
Long.parseLong(multipartdef.getMaxFileSize()),
multipartdef.getFileSizeThreshold())));
} else {
wrapper.setMultipartConfigElement(new MultipartConfigElement(
multipartdef.getLocation()));
代码示例来源:origin: com.ovea.tajin.server/tajin-server-tomcat7
multipartdef.getMaxRequestSize()!= null &&
multipartdef.getFileSizeThreshold() != null) {
wrapper.setMultipartConfigElement(new MultipartConfigElement(
multipartdef.getLocation(),
Long.parseLong(multipartdef.getMaxFileSize()),
multipartdef.getFileSizeThreshold())));
} else {
wrapper.setMultipartConfigElement(new MultipartConfigElement(
multipartdef.getLocation()));
代码示例来源:origin: com.ovea.tajin.server/tajin-server-jetty9
multipartdef.getMaxRequestSize()!= null &&
multipartdef.getFileSizeThreshold() != null) {
wrapper.setMultipartConfigElement(new MultipartConfigElement(
multipartdef.getLocation(),
Long.parseLong(multipartdef.getMaxFileSize()),
multipartdef.getFileSizeThreshold())));
} else {
wrapper.setMultipartConfigElement(new MultipartConfigElement(
multipartdef.getLocation()));
代码示例来源:origin: org.apache.catalina/com.springsource.org.apache.catalina
multipartdef.getMaxRequestSize()!= null &&
multipartdef.getFileSizeThreshold() != null) {
wrapper.setMultipartConfigElement(new MultipartConfigElement(
multipartdef.getLocation(),
Long.parseLong(multipartdef.getMaxFileSize()),
multipartdef.getFileSizeThreshold())));
} else {
wrapper.setMultipartConfigElement(new MultipartConfigElement(
multipartdef.getLocation()));
代码示例来源:origin: codefollower/Tomcat-Research
multipartdef.getMaxRequestSize()!= null &&
multipartdef.getFileSizeThreshold() != null) {
wrapper.setMultipartConfigElement(new MultipartConfigElement(
multipartdef.getLocation(),
Long.parseLong(multipartdef.getMaxFileSize()),
multipartdef.getFileSizeThreshold())));
} else {
wrapper.setMultipartConfigElement(new MultipartConfigElement(
multipartdef.getLocation()));
代码示例来源:origin: org.ops4j.pax.tipi/org.ops4j.pax.tipi.tomcat-embed-core
multipartdef.getMaxRequestSize()!= null &&
multipartdef.getFileSizeThreshold() != null) {
wrapper.setMultipartConfigElement(new MultipartConfigElement(
multipartdef.getLocation(),
Long.parseLong(multipartdef.getMaxFileSize()),
multipartdef.getFileSizeThreshold())));
} else {
wrapper.setMultipartConfigElement(new MultipartConfigElement(
multipartdef.getLocation()));
代码示例来源:origin: org.apache.tomcat/tomcat-catalina
multipartdef.getMaxRequestSize()!= null &&
multipartdef.getFileSizeThreshold() != null) {
wrapper.setMultipartConfigElement(new MultipartConfigElement(
multipartdef.getLocation(),
Long.parseLong(multipartdef.getMaxFileSize()),
multipartdef.getFileSizeThreshold())));
} else {
wrapper.setMultipartConfigElement(new MultipartConfigElement(
multipartdef.getLocation()));
代码示例来源:origin: myrrix/myrrix-recommender
addServlet(context, new TagItemServlet(), "/tag/item/*");
Wrapper ingestWrapper = addServlet(context, new IngestServlet(), "/ingest/*");
ingestWrapper.setMultipartConfigElement(new MultipartConfigElement("/tmp"));
addServlet(context, new RefreshServlet(), "/refresh/*");
代码示例来源:origin: com.cloudera.oryx/oryx-als-serving
@Override
public void addServlets(Context context) {
addServlet(context, new RecommendServlet(), "/recommend/*");
addServlet(context, new RecommendToManyServlet(), "/recommendToMany/*");
addServlet(context, new RecommendToAnonymousServlet(), "/recommendToAnonymous/*");
addServlet(context, new SimilarityServlet(), "/similarity/*");
addServlet(context, new SimilarityToItemServlet(), "/similarityToItem/*");
addServlet(context, new EstimateServlet(), "/estimate/*");
addServlet(context, new EstimateForAnonymousServlet(), "/estimateForAnonymous/*");
addServlet(context, new BecauseServlet(), "/because/*");
addServlet(context, new ReadyServlet(), "/ready/*");
addServlet(context, new MostPopularItemsServlet(), "/mostPopularItems/*");
addServlet(context, new MostActiveUsersServlet(), "/mostActiveUsers");
addServlet(context, new PopularRepresentativeItemsServlet(), "/popularRepresentativeItems/*");
addServlet(context, new AllItemIDsServlet(), "/item/allIDs");
addServlet(context, new AllUserIDsServlet(), "/user/allIDs");
addServlet(context, new KnownItemsServlet(), "/knownItems/*");
addServlet(context, new MostSurprisingServlet(), "/mostSurprising/*");
if (!ConfigUtils.getDefaultConfig().getBoolean("serving-layer.api.read-only")) {
addServlet(context, new PreferenceServlet(), "/pref/*");
Wrapper ingestWrapper = addServlet(context, new IngestServlet(), "/ingest/*");
ingestWrapper.setMultipartConfigElement(new MultipartConfigElement("/tmp"));
addServlet(context, new RefreshServlet(), "/refresh/*");
}
}
内容来源于网络,如有侵权,请联系作者删除!