KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > pluto > services > information > ResourceURLProvider


1 /*
2  * Copyright 2003,2004 The Apache Software Foundation.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */

16
17 package org.apache.pluto.services.information;
18
19 public interface ResourceURLProvider
20 {
21
22
23     /**
24      * Sets the absolute URL to be returned by the provider.
25      * E.g. http://host/wps/portal/hello.gif
26      *
27      * @param path the new absolute url
28      */

29     public void setAbsoluteURL(String JavaDoc path);
30     
31     /**
32      * Sets a full path URI including the context root.
33      * E.g. /wps/portal/hello.gif
34      *
35      * @param path the new absolute url
36      */

37     public void setFullPath(String JavaDoc path);
38     
39     /**
40      * Returns a url to a resource as absolute URL starting with
41      * protocol so that it can be accessed by a browser.
42      *
43      * @return the URL as string
44      */

45     public String JavaDoc toString();
46 }
47
Popular Tags