Tabnine Logo
IWebContext.getRequest
Code IndexAdd Tabnine to your IDE (free)

How to use
getRequest
method
in
org.thymeleaf.context.IWebContext

Best Java code snippets using org.thymeleaf.context.IWebContext.getRequest (Showing top 20 results out of 315)

origin: thymeleaf/thymeleaf

final HttpServletRequest request = ((IWebContext)context).getRequest();
return request.getContextPath();
origin: thymeleaf/thymeleaf

return ((IWebContext) context).getRequest();
return ((IWebContext) context).getRequest();
origin: thymeleaf/thymeleaf

  return new WebEngineContext(
      configuration, templateData, templateResolutionAttributes,
      webContext.getRequest(), webContext.getResponse(), webContext.getServletContext(),
      webContext.getLocale(), Collections.EMPTY_MAP);
return new WebEngineContext(
    configuration, templateData, templateResolutionAttributes,
    webContext.getRequest(), webContext.getResponse(), webContext.getServletContext(),
    webContext.getLocale(), variables);
origin: org.thymeleaf.extras/thymeleaf-extras-springsecurity5

static String getContextPath(final IContext context) {
  final javax.servlet.http.HttpServletRequest request = ((IWebContext)context).getRequest();
  return request.getContextPath();
}
origin: org.thymeleaf.extras/thymeleaf-extras-springsecurity5

static Object getRequestAttribute(final IContext context, final String attributeName) {
  final javax.servlet.http.HttpServletRequest request = ((IWebContext)context).getRequest();
  return request.getAttribute(attributeName);
}
origin: thymeleaf/thymeleaf-extras-springsecurity

static Object getRequestAttribute(final IContext context, final String attributeName) {
  final javax.servlet.http.HttpServletRequest request = ((IWebContext)context).getRequest();
  return request.getAttribute(attributeName);
}
origin: thymeleaf/thymeleaf-extras-springsecurity

static String getContextPath(final IContext context) {
  final javax.servlet.http.HttpServletRequest request = ((IWebContext)context).getRequest();
  return request.getContextPath();
}
origin: thymeleaf/thymeleaf-extras-springsecurity

@Override
public HttpServletRequest getHttpServletRequest(final IContext context) {
  if (context instanceof IWebContext) {
    return ((IWebContext)context).getRequest();
  }
  throw new TemplateProcessingException(
      "Cannot obtain HttpServletRequest from a non-Servlet context implementation (\"" +
      context.getClass().getName() + "\")");
}
origin: org.thymeleaf.extras/thymeleaf-extras-springsecurity5

@Override
public HttpServletRequest getHttpServletRequest(final IContext context) {
  if (context instanceof IWebContext) {
    return ((IWebContext)context).getRequest();
  }
  throw new TemplateProcessingException(
      "Cannot obtain HttpServletRequest from a non-Servlet context implementation (\"" +
      context.getClass().getName() + "\")");
}
origin: org.thymeleaf/thymeleaf-spring4

public static Map<String, String> getExtraHiddenFields(final ITemplateContext context) {
  if (!canApply || !(context instanceof IWebContext)) {
    return null;
  }
  final RequestContext requestContext =
      (RequestContext) context.getVariable(SpringContextVariableNames.SPRING_REQUEST_CONTEXT);
  if (requestContext == null) {
    return null;
  }
  if (spring4Delegate != null) {
    return spring4Delegate.getExtraHiddenFields(requestContext, ((IWebContext)context).getRequest());
  }
  throw new TemplateProcessingException(
      "According to the detected Spring version info, a RequestDataValueProcessor delegate should be available, " +
      "but none seem applicable");
}
origin: thymeleaf/thymeleaf-spring

public static String processUrl(final ITemplateContext context, final String url) {
  if (!canApply || !(context instanceof IWebContext)) {
    return url;
  }
  final RequestContext requestContext =
      (RequestContext) context.getVariable(SpringContextVariableNames.SPRING_REQUEST_CONTEXT);
  if (requestContext == null) {
    return url;
  }
  if (spring31Delegate != null) {
    return spring31Delegate.processUrl(requestContext, ((IWebContext)context).getRequest(), url);
  }
  throw new TemplateProcessingException(
      "According to the detected Spring version info, a RequestDataValueProcessor delegate should be available, " +
      "but none seem applicable");
}
origin: thymeleaf/thymeleaf-spring

public static Map<String, String> getExtraHiddenFields(final ITemplateContext context) {
  if (!canApply || !(context instanceof IWebContext)) {
    return null;
  }
  final RequestContext requestContext =
      (RequestContext) context.getVariable(SpringContextVariableNames.SPRING_REQUEST_CONTEXT);
  if (requestContext == null) {
    return null;
  }
  if (spring4Delegate != null) {
    return spring4Delegate.getExtraHiddenFields(requestContext, ((IWebContext)context).getRequest());
  }
  throw new TemplateProcessingException(
      "According to the detected Spring version info, a RequestDataValueProcessor delegate should be available, " +
      "but none seem applicable");
}
origin: org.thymeleaf/thymeleaf-spring4

public static String processUrl(final ITemplateContext context, final String url) {
  if (!canApply || !(context instanceof IWebContext)) {
    return url;
  }
  final RequestContext requestContext =
      (RequestContext) context.getVariable(SpringContextVariableNames.SPRING_REQUEST_CONTEXT);
  if (requestContext == null) {
    return url;
  }
  if (spring4Delegate != null) {
    return spring4Delegate.processUrl(requestContext, ((IWebContext)context).getRequest(), url);
  }
  throw new TemplateProcessingException(
      "According to the detected Spring version info, a RequestDataValueProcessor delegate should be available, " +
      "but none seem applicable");
}
origin: org.thymeleaf/thymeleaf-spring3

public static Map<String, String> getExtraHiddenFields(final ITemplateContext context) {
  if (!canApply || !(context instanceof IWebContext)) {
    return null;
  }
  final RequestContext requestContext =
      (RequestContext) context.getVariable(SpringContextVariableNames.SPRING_REQUEST_CONTEXT);
  if (requestContext == null) {
    return null;
  }
  if (spring31Delegate != null) {
    return spring31Delegate.getExtraHiddenFields(requestContext, ((IWebContext)context).getRequest());
  }
  throw new TemplateProcessingException(
      "According to the detected Spring version info, a RequestDataValueProcessor delegate should be available, " +
      "but none seem applicable");
}
origin: thymeleaf/thymeleaf-spring

public static String processAction(
    final ITemplateContext context, final String action, final String httpMethod) {
  if (!canApply || !(context instanceof IWebContext)) {
    return action;
  }
  final RequestContext requestContext =
      (RequestContext) context.getVariable(SpringContextVariableNames.SPRING_REQUEST_CONTEXT);
  if (requestContext == null) {
    return action;
  }
  if (spring4Delegate != null) {
    return spring4Delegate.processAction(requestContext, ((IWebContext)context).getRequest(), action, httpMethod);
  }
  throw new TemplateProcessingException(
      "According to the detected Spring version info, a RequestDataValueProcessor delegate should be available, " +
      "but none seem applicable");
}
origin: org.thymeleaf/thymeleaf-spring4

public static String processFormFieldValue(
    final ITemplateContext context, final String name, final String value, final String type) {
  if (!canApply || !(context instanceof IWebContext)) {
    return value;
  }
  final RequestContext requestContext =
      (RequestContext) context.getVariable(SpringContextVariableNames.SPRING_REQUEST_CONTEXT);
  if (requestContext == null) {
    return value;
  }
  if (spring4Delegate != null) {
    return spring4Delegate.processFormFieldValue(requestContext, ((IWebContext)context).getRequest(), name, value, type);
  }
  throw new TemplateProcessingException(
      "According to the detected Spring version info, a RequestDataValueProcessor delegate should be available, " +
      "but none seem applicable");
}
origin: thymeleaf/thymeleaf-spring

public static String processFormFieldValue(
    final ITemplateContext context, final String name, final String value, final String type) {
  if (!canApply || !(context instanceof IWebContext)) {
    return value;
  }
  final RequestContext requestContext =
      (RequestContext) context.getVariable(SpringContextVariableNames.SPRING_REQUEST_CONTEXT);
  if (requestContext == null) {
    return value;
  }
  if (spring31Delegate != null) {
    return spring31Delegate.processFormFieldValue(requestContext, ((IWebContext)context).getRequest(), name, value, type);
  }
  throw new TemplateProcessingException(
      "According to the detected Spring version info, a RequestDataValueProcessor delegate should be available, " +
      "but none seem applicable");
}
origin: org.thymeleaf/thymeleaf-spring3

public static String processAction(
    final ITemplateContext context, final String action, final String httpMethod) {
  if (!canApply || !(context instanceof IWebContext)) {
    return action;
  }
  final RequestContext requestContext =
      (RequestContext) context.getVariable(SpringContextVariableNames.SPRING_REQUEST_CONTEXT);
  if (requestContext == null) {
    return action;
  }
  if (spring31Delegate != null) {
    return spring31Delegate.processAction(requestContext, ((IWebContext)context).getRequest(), action, httpMethod);
  }
  throw new TemplateProcessingException(
      "According to the detected Spring version info, a RequestDataValueProcessor delegate should be available, " +
      "but none seem applicable");
}
origin: thymeleaf/thymeleaf-spring

public static String processFormFieldValue(
    final ITemplateContext context, final String name, final String value, final String type) {
  if (!canApply || !(context instanceof IWebContext)) {
    return value;
  }
  final RequestContext requestContext =
      (RequestContext) context.getVariable(SpringContextVariableNames.SPRING_REQUEST_CONTEXT);
  if (requestContext == null) {
    return value;
  }
  if (spring4Delegate != null) {
    return spring4Delegate.processFormFieldValue(requestContext, ((IWebContext)context).getRequest(), name, value, type);
  }
  throw new TemplateProcessingException(
      "According to the detected Spring version info, a RequestDataValueProcessor delegate should be available, " +
      "but none seem applicable");
}
origin: thymeleaf/thymeleaf-spring

public static String processAction(
    final ITemplateContext context, final String action, final String httpMethod) {
  if (!canApply || !(context instanceof IWebContext)) {
    return action;
  }
  final RequestContext requestContext =
      (RequestContext) context.getVariable(SpringContextVariableNames.SPRING_REQUEST_CONTEXT);
  if (requestContext == null) {
    return action;
  }
  if (spring31Delegate != null) {
    return spring31Delegate.processAction(requestContext, ((IWebContext)context).getRequest(), action, httpMethod);
  }
  throw new TemplateProcessingException(
      "According to the detected Spring version info, a RequestDataValueProcessor delegate should be available, " +
      "but none seem applicable");
}
org.thymeleaf.contextIWebContextgetRequest

Javadoc

Returns the HttpServletRequest object associated with the template execution.

Popular methods of IWebContext

  • getHttpServletRequest
    Returns the HttpServletRequest object associated with the request this context has been created for
  • getServletContext
    Returns the ServletContext object associated with the web application.
  • getHttpServletResponse
    Returns the HttpServletResponse object associated with the request this context has been created fo
  • getResponse
  • getHttpSession
    Returns the HttpSession object associated with the request this context has been created for.
  • getLocale
  • getSession
    Returns the HttpSession object associated with the template execution, or null if there is no sessi

Popular in Java

  • Finding current android device location
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • onCreateOptionsMenu (Activity)
  • getResourceAsStream (ClassLoader)
  • Graphics2D (java.awt)
    This Graphics2D class extends the Graphics class to provide more sophisticated control overgraphics
  • InputStreamReader (java.io)
    A class for turning a byte stream into a character stream. Data read from the source input stream is
  • BigInteger (java.math)
    An immutable arbitrary-precision signed integer.FAST CRYPTOGRAPHY This implementation is efficient f
  • JCheckBox (javax.swing)
  • IOUtils (org.apache.commons.io)
    General IO stream manipulation utilities. This class provides static utility methods for input/outpu
  • Logger (org.slf4j)
    The org.slf4j.Logger interface is the main user entry point of SLF4J API. It is expected that loggin
  • Best IntelliJ plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now