RequestDecorator is nothing but a decorator implementation of Request
class...
[CODE]
public class RequestDecorator
  extends Request {
  /**
   * Decorated request.
   */
  private final Request request;


  /**
   * Constructor.
   *
   * @param request to decorate.
   */
  public RequestDecorator(final Request request) {
    if (request == null) {
      throw new IllegalArgumentException("Decorated Request cannot be
NULL!");
    }
    this.request = request;
  }


  /**
   * {...@inheritdoc}
   */
  @Override
  public Locale getLocale() {
    return request.getLocale();
  }


  /**
   * {...@inheritdoc}
   */
  @Override
  public String getParameter(final String key) {
    return request.getParameter(key);
  }


  /**
   * {...@inheritdoc}
   */
  @Override
  public Map<String, String[]> getParameterMap() {
    return request.getParameterMap();
  }


  /**
   * {...@inheritdoc}
   */
  @Override
  public String[] getParameters(final String key) {
    return request.getParameters(key);
  }


  /**
   * {...@inheritdoc}
   */
  @Override
  public String getPath() {
    return request.getPath();
  }


  /**
   * {...@inheritdoc}
   */
  @Override
  public String getQueryString() {
    return request.getQueryString();
  }


  /**
   * {...@inheritdoc}
   */
  @Override
  public String getRelativePathPrefixToContextRoot() {
    return request.getRelativePathPrefixToContextRoot();
  }


  /**
   * {...@inheritdoc}
   */
  @Override
  public String getRelativePathPrefixToWicketHandler() {
    return request.getRelativePathPrefixToWicketHandler();
  }


  /**
   * {...@inheritdoc}
   */
  @Override
  public String getURL() {
    return request.getURL();
  }
}
[/CODE]


Gatos wrote:
> 
> I'm using wicket 1.3.5 and RequestDecorator could not be found.
> 
> On Mon, Jul 27, 2009 at 1:05 PM, Alex Objelean
> <alex_objel...@yahoo.com>wrote:
> 
>>
>>
>> There is another thread where I have posted a link with implementation
>> (which is currently in production)... so, you can just reuse it:
>>
>> http://www.nabble.com/Is-IRequestTargetUrlCodingStrategy-needed-for-mapping-bookmarkable--URLs--td24407411.html#a24409330
>>
>> Alex Objelean
>>
>>
>> Gatos wrote:
>> >
>> > Hello,
>> >
>> > How is it possible to use such urls in wicket?
>> > If users clicks that link then appropriate page with defined locale
>> will
>> > be
>> > shown.
>> > www.domain.com/uk/home
>> > www.domain.com/nl/home
>> >
>> > Thank you
>> >
>> >
>>
>> --
>> View this message in context:
>> http://www.nabble.com/urls-with-localization-tp24676709p24677616.html
>> Sent from the Wicket - User mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> For additional commands, e-mail: users-h...@wicket.apache.org
>>
>>
> 
> 

-- 
View this message in context: 
http://www.nabble.com/urls-with-localization-tp24676709p24681795.html
Sent from the Wicket - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org

Reply via email to