org.apache.wicket.protocol.http.request
Class WebExternalResourceRequestTarget

java.lang.Object
  extended by org.apache.wicket.request.target.resource.ResourceStreamRequestTarget
      extended by org.apache.wicket.protocol.http.request.WebExternalResourceRequestTarget
All Implemented Interfaces:
IRequestTarget

public class WebExternalResourceRequestTarget
extends ResourceStreamRequestTarget

Request target that is not a Wicket resource. For example, such a resource could denote an image in the web application directory (not mapped to a Wicket servlet). NOTE: this target can only be used in a servlet environment with WebRequestCycles.

NOTE: this class is a wrapper around ResourceStreamRequestTarget.ResourceStreamRequestTarget(org.apache.wicket.util.resource.IResourceStream), and kept for compatibility purposes.

Author:
Eelco Hillenius

Constructor Summary
WebExternalResourceRequestTarget(java.lang.String uri)
          Construct.
 
Method Summary
 void detach(RequestCycle requestCycle)
          This method is called at the end of a request cycle to indicate that processing is done and that cleaning up of the subject(s) of this target may be done.
 boolean equals(java.lang.Object obj)
           
 java.lang.String getUrl()
          Gets the url to the external resource.
 int hashCode()
           
 java.lang.String toString()
           
 
Methods inherited from class org.apache.wicket.request.target.resource.ResourceStreamRequestTarget
configure, getFileName, getResourceStream, respond, setFileName
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

WebExternalResourceRequestTarget

public WebExternalResourceRequestTarget(java.lang.String uri)
Construct.

Parameters:
uri - the relative url of the external resource
Method Detail

getUrl

public final java.lang.String getUrl()
Gets the url to the external resource.

Returns:
the url to the external resource

detach

public void detach(RequestCycle requestCycle)
Description copied from interface: IRequestTarget
This method is called at the end of a request cycle to indicate that processing is done and that cleaning up of the subject(s) of this target may be done.

Specified by:
detach in interface IRequestTarget
Overrides:
detach in class ResourceStreamRequestTarget
Parameters:
requestCycle - the current request cycle
See Also:
IRequestTarget.detach(org.apache.wicket.RequestCycle)

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class ResourceStreamRequestTarget
See Also:
Object.equals(java.lang.Object)

hashCode

public int hashCode()
Overrides:
hashCode in class ResourceStreamRequestTarget
See Also:
Object.hashCode()

toString

public java.lang.String toString()
Overrides:
toString in class ResourceStreamRequestTarget
See Also:
Object.toString()


Copyright © 2004-2010 Apache Software Foundation. All Rights Reserved.