本文整理汇总了Java中com.helger.commons.http.EHttpMethod类的典型用法代码示例。如果您正苦于以下问题:Java EHttpMethod类的具体用法?Java EHttpMethod怎么用?Java EHttpMethod使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
EHttpMethod类属于com.helger.commons.http包,在下文中一共展示了EHttpMethod类的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: AS4Response
import com.helger.commons.http.EHttpMethod; //导入依赖的package包/类
public AS4Response (@Nonnull final EHttpVersion eHTTPVersion,
@Nonnull final EHttpMethod eHTTPMethod,
@Nonnull final HttpServletRequest aHttpRequest)
{
super (eHTTPVersion, eHTTPMethod, aHttpRequest);
// Never cache the responses on client side
disableCaching ();
setAllowContentOnStatusCode (true);
}
示例2: createUnifiedResponse
import com.helger.commons.http.EHttpMethod; //导入依赖的package包/类
@Nonnull
@Override
public AS4Response createUnifiedResponse (@Nonnull final EHttpVersion eHTTPVersion,
@Nonnull final EHttpMethod eHTTPMethod,
@Nonnull final HttpServletRequest aHttpRequest,
@Nonnull final IRequestWebScope aRequestScope)
{
return new AS4Response (eHTTPVersion, eHTTPMethod, aHttpRequest);
}
示例3: PEPPOLAS2ApplicationServlet
import com.helger.commons.http.EHttpMethod; //导入依赖的package包/类
public PEPPOLAS2ApplicationServlet ()
{
final AbstractApplicationXServletHandler aHandler = new AbstractApplicationXServletHandler ()
{
@Override
protected IHTMLProvider createHTMLProvider (final IRequestWebScopeWithoutResponse aRequestScope)
{
return new PEPPOLAS2HtmlProvider ();
}
};
handlerRegistry ().registerHandler (EHttpMethod.GET, aHandler);
}
示例4: AS4Servlet
import com.helger.commons.http.EHttpMethod; //导入依赖的package包/类
public AS4Servlet ()
{
// Multipart is handled specifically inside
settings ().setMultipartEnabled (false);
handlerRegistry ().registerHandler (EHttpMethod.POST, new AS4XServletHandler ());
}
示例5: PublicParticipantServlet
import com.helger.commons.http.EHttpMethod; //导入依赖的package包/类
public PublicParticipantServlet ()
{
handlerRegistry ().registerHandler (EHttpMethod.GET, new PublicParticipantXServletHandler ());
}
示例6: AppRootServlet
import com.helger.commons.http.EHttpMethod; //导入依赖的package包/类
public AppRootServlet ()
{
handlerRegistry ().registerHandler (EHttpMethod.GET,
new RootXServletHandler (AbstractPublicApplicationServlet.SERVLET_DEFAULT_PATH));
handlerRegistry ().copyHandlerToAll (EHttpMethod.GET);
}
示例7: PublicSearchServlet
import com.helger.commons.http.EHttpMethod; //导入依赖的package包/类
public PublicSearchServlet ()
{
handlerRegistry ().registerHandler (EHttpMethod.GET, new PublicSearchXServletHandler ());
}
示例8: PEPPOLAS2RootServlet
import com.helger.commons.http.EHttpMethod; //导入依赖的package包/类
public PEPPOLAS2RootServlet ()
{
handlerRegistry ().registerHandler (EHttpMethod.GET,
new RootXServletHandler (AbstractSecureApplicationServlet.SERVLET_DEFAULT_PATH));
handlerRegistry ().copyHandlerToAll (EHttpMethod.GET);
}
示例9: PEPPOLAS2ReceiveServlet
import com.helger.commons.http.EHttpMethod; //导入依赖的package包/类
public PEPPOLAS2ReceiveServlet ()
{
handlerRegistry ().registerHandler (EHttpMethod.POST, new PEPPOLAS2ReceiveXServletHandler (), false);
}