01: /*
02: * @author <a href="mailto:novotny@gridsphere.org">Jason Novotny</a>
03: * @version $Id: Client.java 6385 2007-10-25 14:02:26Z wehrens $
04: */
05: package org.gridsphere.portletcontainer;
06:
07: /**
08: * The <code>Client</code> interface represents the client device that the user connects to the portal with.
09: * It defines methods to obtain information about clients, e.g. browsers running on PCs, WAP phones, PDAs etc.
10: */
11: public interface Client {
12:
13: /**
14: * Returns the name of the manufacturer of this client, or null if the name is not available.
15: *
16: * @return the manufacturer
17: */
18: public String getManufacturer();
19:
20: /**
21: * Returns the name of the model of this client, or null if the name is not available.
22: *
23: * @return the model
24: */
25: public String getModel();
26:
27: /**
28: * Returns the version of the model of this client, or null if the version is not available.
29: *
30: * @return the version
31: */
32: public String getVersion();
33:
34: /**
35: * Returns the exact user agent that this client uses to identify itself to the portal.
36: * If the client does not send a user agent, this method returns null.
37: *
38: * @return the user agent
39: */
40: public String getUserAgent();
41:
42: /**
43: * Returns the preferred mime-type that this client device supports.
44: *
45: * @return the mime-type
46: */
47: public String getMimeType();
48:
49: /**
50: * Returns the preferred markup name that this client device supports.
51: *
52: * @return the name of the markup
53: */
54: public String getMarkupName();
55:
56: }
|