01: /*
02: * Copyright 2001 Sun Microsystems, Inc. All rights reserved.
03: * PROPRIETARY/CONFIDENTIAL. Use of this product is subject to license terms.
04: */
05: package com.sun.portal.rproxy.rewriter.yahoo;
06:
07: import com.sun.portal.rewriter.AbstractTranslatorHook;
08: import com.sun.portal.rewriter.Translator;
09: import com.sun.portal.rewriter.util.uri.DecoratedURI;
10: import com.sun.portal.rproxy.rewriter.util.uri.SRAPGatewayURI;
11:
12: public class YahooTranslatorHook extends AbstractTranslatorHook {
13: private final SRAPGatewayURI decoratedGatewayURI;
14:
15: public YahooTranslatorHook(final Translator aRootTranslator,
16: final SRAPGatewayURI aGatewayURI) {
17: super (aRootTranslator);
18: decoratedGatewayURI = aGatewayURI;
19: }// constructor
20:
21: public String hook4Translate(final DecoratedURI aAbsoluteURI,
22: final DecoratedURI aTranslatedURI) {
23: return YahooTranslatorHelper.doTranslate(decoratedGatewayURI,
24: aTranslatedURI);
25: }// hook4Translate()
26:
27: }// YahooTranslatorHook()
|