congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
RequestContext.getHeaderResponse
Code IndexAdd Tabnine to your IDE (free)

How to use
getHeaderResponse
method
in
org.apache.wicket.RequestContext

Best Java code snippets using org.apache.wicket.RequestContext.getHeaderResponse (Showing top 2 results out of 315)

origin: org.apache.wicket/com.springsource.org.apache.wicket

/**
 * Factory method for creating header response
 * 
 * @return new header response
 */
protected IHeaderResponse newHeaderResponse()
{
  IHeaderResponse headerResponse = RequestContext.get().getHeaderResponse();
  if (headerResponse == null)
  {
    // no (portlet) headerResponse override, create a default one
    headerResponse = new HeaderResponse()
    {
      protected Response getRealResponse()
      {
        return HtmlHeaderContainer.this.getResponse();
      }
    };
  }
  return headerResponse;
}
origin: org.ops4j.pax.wicket/pax-wicket-service

/**
 * Factory method for creating header response
 * 
 * @return new header response
 */
protected IHeaderResponse newHeaderResponse()
{
  IHeaderResponse headerResponse = RequestContext.get().getHeaderResponse();
  if (headerResponse == null)
  {
    // no (portlet) headerResponse override, create a default one
    headerResponse = new HeaderResponse()
    {
      @Override
      protected Response getRealResponse()
      {
        return HtmlHeaderContainer.this.getResponse();
      }
    };
  }
  return headerResponse;
}
org.apache.wicketRequestContextgetHeaderResponse

Javadoc

Used to override response objects, typically used by the portlet implementation.

In a Portlet environment, this allows the portlet container/portal to capture the HeaderResponse as a separate stream for merging in the overall page header (together with header output for other portlets).

Popular methods of RequestContext

  • get
  • isPortletRequest
  • encodeRenderURL
    Encodes URL's for render URLs, typically overridden by the portlet implementation.
  • encodeResourceURL
    Encodes URL's for resource targets, typically overridden by the portlet implementation.
  • encodeSharedResourceURL
    Encodes URL's for shared resource targets, typically overridden by the portlet implementation.
  • <init>
    Construct.
  • encodeMarkupId
    Encodes markup Ids, typically overridden by the portlet implementation.
  • getNamespace
  • set
    Sets the RequestContext for the current threads active request.
  • unset
    Resets the RequestContext for the current threads active request.

Popular in Java

  • Updating database using SQL prepared statement
  • scheduleAtFixedRate (ScheduledExecutorService)
  • getSupportFragmentManager (FragmentActivity)
  • requestLocationUpdates (LocationManager)
  • FileWriter (java.io)
    A specialized Writer that writes to a file in the file system. All write requests made by calling me
  • IOException (java.io)
    Signals a general, I/O-related error. Error details may be specified when calling the constructor, a
  • ServerSocket (java.net)
    This class represents a server-side socket that waits for incoming client connections. A ServerSocke
  • ResultSet (java.sql)
    An interface for an object which represents a database table entry, returned as the result of the qu
  • Modifier (javassist)
    The Modifier class provides static methods and constants to decode class and member access modifiers
  • SAXParseException (org.xml.sax)
    Encapsulate an XML parse error or warning.> This module, both source code and documentation, is in t
  • CodeWhisperer alternatives
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