permissions = store.getPermissions("*", "");
22 | assert (!permissions.getValue0().isDecided());
23 | store.storePermissions("*", "", Optional.empty(), Permission.Deny);
24 | store.storePermissions("*", "", Optional.of(RequestKind.Image), Permission.Allow);
25 | store.storePermissions("*", "", Optional.of(RequestKind.CSS), Permission.Allow);
26 | }
27 | }
28 | }
29 |
--------------------------------------------------------------------------------
/src/Platform_Core/org/lobobrowser/settings/package.html:
--------------------------------------------------------------------------------
1 | Classes that provide access to browser settings.
2 |
--------------------------------------------------------------------------------
/src/Platform_Core/org/lobobrowser/store/CacheInfo.java:
--------------------------------------------------------------------------------
1 | /*
2 | GNU GENERAL PUBLIC LICENSE
3 | Copyright (C) 2006 The Lobo Project
4 |
5 | This program is free software; you can redistribute it and/or
6 | modify it under the terms of the GNU General Public
7 | License as published by the Free Software Foundation; either
8 | version 2 of the License, or (at your option) any later version.
9 |
10 | This program is distributed in the hope that it will be useful,
11 | but WITHOUT ANY WARRANTY; without even the implied warranty of
12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 | General Public License for more details.
14 |
15 | You should have received a copy of the GNU General Public
16 | License along with this library; if not, write to the Free Software
17 | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
18 |
19 | Contact info: lobochief@users.sourceforge.net
20 | */
21 | package org.lobobrowser.store;
22 |
23 | import java.util.List;
24 |
25 | public class CacheInfo {
26 | public final long approximateSize;
27 | public final int numEntries;
28 | public final java.util.List> entryInfoList;
29 |
30 | public CacheInfo(final long approximateSize, final int numEntries, final List> entryInfoList) {
31 | super();
32 | this.approximateSize = approximateSize;
33 | this.numEntries = numEntries;
34 | this.entryInfoList = entryInfoList;
35 | }
36 | }
37 |
--------------------------------------------------------------------------------
/src/Platform_Core/org/lobobrowser/store/ClassLoaderObjectInputStream.java:
--------------------------------------------------------------------------------
1 | /*
2 | GNU GENERAL PUBLIC LICENSE
3 | Copyright (C) 2006 The Lobo Project
4 |
5 | This program is free software; you can redistribute it and/or
6 | modify it under the terms of the GNU General Public
7 | License as published by the Free Software Foundation; either
8 | version 2 of the License, or (at your option) any later version.
9 |
10 | This program is distributed in the hope that it will be useful,
11 | but WITHOUT ANY WARRANTY; without even the implied warranty of
12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 | General Public License for more details.
14 |
15 | You should have received a copy of the GNU General Public
16 | License along with this library; if not, write to the Free Software
17 | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
18 |
19 | Contact info: lobochief@users.sourceforge.net
20 | */
21 | package org.lobobrowser.store;
22 |
23 | import java.io.IOException;
24 | import java.io.InputStream;
25 | import java.io.ObjectInputStream;
26 | import java.io.ObjectStreamClass;
27 |
28 | public class ClassLoaderObjectInputStream extends ObjectInputStream {
29 | private final ClassLoader classLoader;
30 |
31 | public ClassLoaderObjectInputStream(final InputStream in, final ClassLoader classLoader) throws IOException {
32 | super(in);
33 | this.classLoader = classLoader;
34 | }
35 |
36 | @Override
37 | protected Class> resolveClass(final ObjectStreamClass desc) throws IOException, ClassNotFoundException {
38 | return Class.forName(desc.getName(), false, this.classLoader);
39 | }
40 | }
--------------------------------------------------------------------------------
/src/Platform_Core/org/lobobrowser/store/QuotaSource.java:
--------------------------------------------------------------------------------
1 | /*
2 | GNU GENERAL PUBLIC LICENSE
3 | Copyright (C) 2006 The Lobo Project
4 |
5 | This program is free software; you can redistribute it and/or
6 | modify it under the terms of the GNU General Public
7 | License as published by the Free Software Foundation; either
8 | verion 2 of the License, or (at your option) any later version.
9 |
10 | This program is distributed in the hope that it will be useful,
11 | but WITHOUT ANY WARRANTY; without even the implied warranty of
12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 | General Public License for more details.
14 |
15 | You should have received a copy of the GNU General Public
16 | License along with this library; if not, write to the Free Software
17 | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
18 |
19 | Contact info: lobochief@users.sourceforge.net
20 | */
21 | /*
22 | * Created on Jun 1, 2005
23 | */
24 | package org.lobobrowser.store;
25 |
26 | import java.io.IOException;
27 |
28 | /**
29 | * @author J. H. S.
30 | */
31 | public interface QuotaSource {
32 | public long getSpaceLeft() throws IOException;
33 |
34 | public void addUsedBytes(long total) throws IOException;
35 | }
36 |
--------------------------------------------------------------------------------
/src/Platform_Core/properties/logging.properties:
--------------------------------------------------------------------------------
1 | ############################################################
2 | # java.util.logging Configuration File used when -debug
3 | # is not specified.
4 | # See lib/logging.properties in JRE.
5 | ############################################################
6 |
7 | handlers= java.util.logging.ConsoleHandler
8 |
9 | # Default global logging level.
10 | .level=WARNING
11 |
12 | ############################################################
13 | # Handler specific properties.
14 | ############################################################
15 |
16 | # default file output is in user's home directory.
17 | java.util.logging.FileHandler.pattern = %h/java%u.log
18 | java.util.logging.FileHandler.limit = 50000
19 | java.util.logging.FileHandler.count = 1
20 | java.util.logging.FileHandler.formatter = java.util.logging.XMLFormatter
21 |
22 | # Console logging output limited to WARNING and above.
23 | java.util.logging.ConsoleHandler.level = WARNING
24 | java.util.logging.ConsoleHandler.formatter = java.util.logging.SimpleFormatter
25 |
26 | ############################################################
27 | # Library specific logging levels
28 | ############################################################
29 |
30 | # This overrides the pBeans ConsoleHandler level to WARNING and above
31 | # Note the ".level" suffix.
32 | com.level=WARNING
33 | org.level=WARNING
34 | net.level=WARNING
35 |
--------------------------------------------------------------------------------
/src/Platform_Core/properties/release.properties:
--------------------------------------------------------------------------------
1 | version.string = 0.3.17-snapshot
2 | version.number = 0
3 | version.name = awning abyss
4 |
5 | version.releaseDate = 2022-08-7
6 |
--------------------------------------------------------------------------------
/src/Platform_Core/trustStore.certs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/gngrOrg/gngr/a0df8a7a8ced1d4ceae98edf933a4c52baf36e51/src/Platform_Core/trustStore.certs
--------------------------------------------------------------------------------
/src/Platform_Public_API/.classpath:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/src/Platform_Public_API/.project:
--------------------------------------------------------------------------------
1 |
2 |
3 | Platform_Public_API
4 |
5 |
6 |
7 |
8 |
9 | org.eclipse.jdt.core.javabuilder
10 |
11 |
12 |
13 |
14 |
15 | org.eclipse.jdt.core.javanature
16 |
17 |
18 |
--------------------------------------------------------------------------------
/src/Platform_Public_API/README.txt:
--------------------------------------------------------------------------------
1 | This project is now the public API for platform access,
2 | clientlets and plugin interfaces only. It is not tied
3 | to any particular rendered language.
4 |
5 | Note that this module, which has no dependencies on
6 | other Lobo project modules, is released under a license
7 | equivalent to the FreeBSD license. This is a permissive
8 | license that is compatible with the GPL, according to
9 | the FSF.
10 |
--------------------------------------------------------------------------------
/src/Platform_Public_API/org/lobobrowser/clientlet/ContentBuffer.java:
--------------------------------------------------------------------------------
1 | /*
2 | Copyright 1994-2006 The Lobo Project. All rights reserved.
3 |
4 | Redistribution and use in source and binary forms, with or without modification,
5 | are permitted provided that the following conditions are met:
6 |
7 | Redistributions of source code must retain the above copyright notice, this list
8 | of conditions and the following disclaimer. Redistributions in binary form must
9 | reproduce the above copyright notice, this list of conditions and the following
10 | disclaimer in the documentation and/or other materials provided with the distribution.
11 |
12 | THIS SOFTWARE IS PROVIDED BY THE LOBO PROJECT ``AS IS'' AND ANY EXPRESS OR IMPLIED
13 | WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
14 | MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
15 | EVENT SHALL THE FREEBSD PROJECT OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
16 | INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
17 | BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
18 | DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
19 | LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
20 | OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
21 | OF THE POSSIBILITY OF SUCH DAMAGE.
22 | */
23 | package org.lobobrowser.clientlet;
24 |
25 | /**
26 | * Undocumented.
27 | *
28 | * @author J. H. S.
29 | */
30 | public interface ContentBuffer {
31 | public java.net.URL getURL();
32 | }
33 |
--------------------------------------------------------------------------------
/src/Platform_Public_API/org/lobobrowser/clientlet/Header.java:
--------------------------------------------------------------------------------
1 | /*
2 | Copyright 1994-2006 The Lobo Project. All rights reserved.
3 |
4 | Redistribution and use in source and binary forms, with or without modification,
5 | are permitted provided that the following conditions are met:
6 |
7 | Redistributions of source code must retain the above copyright notice, this list
8 | of conditions and the following disclaimer. Redistributions in binary form must
9 | reproduce the above copyright notice, this list of conditions and the following
10 | disclaimer in the documentation and/or other materials provided with the distribution.
11 |
12 | THIS SOFTWARE IS PROVIDED BY THE LOBO PROJECT ``AS IS'' AND ANY EXPRESS OR IMPLIED
13 | WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
14 | MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
15 | EVENT SHALL THE FREEBSD PROJECT OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
16 | INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
17 | BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
18 | DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
19 | LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
20 | OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
21 | OF THE POSSIBILITY OF SUCH DAMAGE.
22 | */
23 | package org.lobobrowser.clientlet;
24 |
25 | /**
26 | * Represents a HTTP header.
27 | */
28 | public interface Header {
29 | /**
30 | * Gets the header name.
31 | */
32 | public String getName();
33 |
34 | /**
35 | * Gets the header value.
36 | */
37 | public String getValue();
38 | }
39 |
--------------------------------------------------------------------------------
/src/Platform_Public_API/org/lobobrowser/clientlet/package.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | Contains interface
Clientlet, which is implemented to process responses and set content renderable by a user agent.
4 |
5 |
--------------------------------------------------------------------------------
/src/Platform_Public_API/org/lobobrowser/io/ManagedFileFilter.java:
--------------------------------------------------------------------------------
1 | /*
2 | Copyright 1994-2006 The Lobo Project. All rights reserved.
3 |
4 | Redistribution and use in source and binary forms, with or without modification,
5 | are permitted provided that the following conditions are met:
6 |
7 | Redistributions of source code must retain the above copyright notice, this list
8 | of conditions and the following disclaimer. Redistributions in binary form must
9 | reproduce the above copyright notice, this list of conditions and the following
10 | disclaimer in the documentation and/or other materials provided with the distribution.
11 |
12 | THIS SOFTWARE IS PROVIDED BY THE LOBO PROJECT ``AS IS'' AND ANY EXPRESS OR IMPLIED
13 | WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
14 | MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
15 | EVENT SHALL THE FREEBSD PROJECT OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
16 | INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
17 | BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
18 | DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
19 | LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
20 | OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
21 | OF THE POSSIBILITY OF SUCH DAMAGE.
22 | */
23 | package org.lobobrowser.io;
24 |
25 | /**
26 | * A filter of managed files.
27 | *
28 | * @see org.lobobrowser.io.ManagedFile#listFiles(ManagedFileFilter)
29 | * @author J. H. S.
30 | */
31 | public interface ManagedFileFilter {
32 | /**
33 | * @param file
34 | * A managed file.
35 | * @return True if the file is accepted by the filter, false otherwise.
36 | */
37 | public boolean accept(ManagedFile file);
38 | }
39 |
--------------------------------------------------------------------------------
/src/Platform_Public_API/org/lobobrowser/io/package.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | Contains the ManagedStore
interface, which is a per-host file
4 | system abstraction for secure and limited access to local storage by code
5 | served over the web.
6 |
7 |
--------------------------------------------------------------------------------
/src/Platform_Public_API/org/lobobrowser/ua/NavigationVetoException.java:
--------------------------------------------------------------------------------
1 | /*
2 | GNU GENERAL PUBLIC LICENSE
3 | Copyright (C) 2006 The Lobo Project
4 |
5 | This program is free software; you can redistribute it and/or
6 | modify it under the terms of the GNU General Public
7 | License as published by the Free Software Foundation; either
8 | version 2 of the License, or (at your option) any later version.
9 |
10 | This program is distributed in the hope that it will be useful,
11 | but WITHOUT ANY WARRANTY; without even the implied warranty of
12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 | General Public License for more details.
14 |
15 | You should have received a copy of the GNU General Public
16 | License along with this library; if not, write to the Free Software
17 | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
18 |
19 | Contact info: lobochief@users.sourceforge.net
20 | */
21 | package org.lobobrowser.ua;
22 |
23 | /**
24 | * An exception thrown by {@link NavigationListener} methods in order to prevent
25 | * navigation from occurring.
26 | *
27 | * @see NavigationListener
28 | */
29 | public class NavigationVetoException extends Exception {
30 | private static final long serialVersionUID = -3613259503559453757L;
31 |
32 | public NavigationVetoException() {
33 | super();
34 | }
35 |
36 | public NavigationVetoException(final String message, final Throwable cause) {
37 | super(message, cause);
38 | }
39 |
40 | public NavigationVetoException(final String message) {
41 | super(message);
42 | }
43 |
44 | public NavigationVetoException(final Throwable cause) {
45 | super(cause);
46 | }
47 | }
48 |
--------------------------------------------------------------------------------
/src/Platform_Public_API/org/lobobrowser/ua/NavigatorErrorListener.java:
--------------------------------------------------------------------------------
1 | /*
2 | Copyright 1994-2006 The Lobo Project. All rights reserved.
3 |
4 | Redistribution and use in source and binary forms, with or without modification,
5 | are permitted provided that the following conditions are met:
6 |
7 | Redistributions of source code must retain the above copyright notice, this list
8 | of conditions and the following disclaimer. Redistributions in binary form must
9 | reproduce the above copyright notice, this list of conditions and the following
10 | disclaimer in the documentation and/or other materials provided with the distribution.
11 |
12 | THIS SOFTWARE IS PROVIDED BY THE LOBO PROJECT ``AS IS'' AND ANY EXPRESS OR IMPLIED
13 | WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
14 | MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
15 | EVENT SHALL THE FREEBSD PROJECT OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
16 | INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
17 | BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
18 | DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
19 | LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
20 | OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
21 | OF THE POSSIBILITY OF SUCH DAMAGE.
22 | */
23 | package org.lobobrowser.ua;
24 |
25 | /**
26 | * A listener of navigator events.
27 | *
28 | * @see NavigatorExtensionContext#addNavigatorErrorListener(NavigatorErrorListener)
29 | * @see NavigatorWindowListener
30 | */
31 | public interface NavigatorErrorListener extends java.util.EventListener {
32 | public void errorOcurred(NavigatorExceptionEvent event);
33 | }
34 |
--------------------------------------------------------------------------------
/src/Platform_Public_API/org/lobobrowser/ua/NavigatorEventType.java:
--------------------------------------------------------------------------------
1 | /*
2 | Copyright 1994-2006 The Lobo Project. All rights reserved.
3 |
4 | Redistribution and use in source and binary forms, with or without modification,
5 | are permitted provided that the following conditions are met:
6 |
7 | Redistributions of source code must retain the above copyright notice, this list
8 | of conditions and the following disclaimer. Redistributions in binary form must
9 | reproduce the above copyright notice, this list of conditions and the following
10 | disclaimer in the documentation and/or other materials provided with the distribution.
11 |
12 | THIS SOFTWARE IS PROVIDED BY THE LOBO PROJECT ``AS IS'' AND ANY EXPRESS OR IMPLIED
13 | WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
14 | MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
15 | EVENT SHALL THE FREEBSD PROJECT OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
16 | INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
17 | BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
18 | DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
19 | LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
20 | OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
21 | OF THE POSSIBILITY OF SUCH DAMAGE.
22 | */
23 | package org.lobobrowser.ua;
24 |
25 | public enum NavigatorEventType {
26 | DOCUMENT_ACCESSED, DOCUMENT_RENDERING, PROGRESS_UPDATED, ERROR_OCCURRED, STATUS_UPDATED, DEFAULT_STATUS_UPDATED
27 | }
28 |
--------------------------------------------------------------------------------
/src/Platform_Public_API/org/lobobrowser/ua/NetworkRequestEvent.java:
--------------------------------------------------------------------------------
1 | /*
2 | Copyright 1994-2006 The Lobo Project. All rights reserved.
3 |
4 | Redistribution and use in source and binary forms, with or without modification,
5 | are permitted provided that the following conditions are met:
6 |
7 | Redistributions of source code must retain the above copyright notice, this list
8 | of conditions and the following disclaimer. Redistributions in binary form must
9 | reproduce the above copyright notice, this list of conditions and the following
10 | disclaimer in the documentation and/or other materials provided with the distribution.
11 |
12 | THIS SOFTWARE IS PROVIDED BY THE LOBO PROJECT ``AS IS'' AND ANY EXPRESS OR IMPLIED
13 | WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
14 | MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
15 | EVENT SHALL THE FREEBSD PROJECT OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
16 | INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
17 | BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
18 | DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
19 | LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
20 | OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
21 | OF THE POSSIBILITY OF SUCH DAMAGE.
22 | */
23 | package org.lobobrowser.ua;
24 |
25 | import java.util.EventObject;
26 |
27 | public class NetworkRequestEvent extends EventObject {
28 | private static final long serialVersionUID = -412274798030623834L;
29 | private final int newState;
30 |
31 | public NetworkRequestEvent(final Object source, final int newState) {
32 | super(source);
33 | this.newState = newState;
34 | }
35 |
36 | public int getState() {
37 | return newState;
38 | }
39 | }
40 |
--------------------------------------------------------------------------------
/src/Platform_Public_API/org/lobobrowser/ua/NetworkRequestListener.java:
--------------------------------------------------------------------------------
1 | /*
2 | GNU LESSER GENERAL PUBLIC LICENSE
3 | Copyright (C) 2006 The Lobo Project
4 |
5 | This library is free software; you can redistribute it and/or
6 | modify it under the terms of the GNU Lesser General Public
7 | License as published by the Free Software Foundation; either
8 | version 2.1 of the License, or (at your option) any later version.
9 |
10 | This library is distributed in the hope that it will be useful,
11 | but WITHOUT ANY WARRANTY; without even the implied warranty of
12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 | Lesser General Public License for more details.
14 |
15 | You should have received a copy of the GNU Lesser General Public
16 | License along with this library; if not, write to the Free Software
17 | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
18 |
19 | Contact info: lobochief@users.sourceforge.net
20 | */
21 | /*
22 | * Created on Nov 13, 2005
23 | */
24 | package org.lobobrowser.ua;
25 |
26 | import java.util.EventListener;
27 |
28 | /**
29 | * Listener of {@link NetworkRequest} state changes.
30 | *
31 | * @see NetworkRequest#addNetworkRequestListener(NetworkRequestListener)
32 | */
33 | public interface NetworkRequestListener extends EventListener {
34 | /**
35 | * This method is called when the readyState
property of the
36 | * request changes.
37 | */
38 | public void readyStateChanged(NetworkRequestEvent event);
39 | }
40 |
--------------------------------------------------------------------------------
/src/Platform_Public_API/org/lobobrowser/ua/ParameterInfo.java:
--------------------------------------------------------------------------------
1 | /*
2 | Copyright 1994-2006 The Lobo Project. All rights reserved.
3 |
4 | Redistribution and use in source and binary forms, with or without modification,
5 | are permitted provided that the following conditions are met:
6 |
7 | Redistributions of source code must retain the above copyright notice, this list
8 | of conditions and the following disclaimer. Redistributions in binary form must
9 | reproduce the above copyright notice, this list of conditions and the following
10 | disclaimer in the documentation and/or other materials provided with the distribution.
11 |
12 | THIS SOFTWARE IS PROVIDED BY THE LOBO PROJECT ``AS IS'' AND ANY EXPRESS OR IMPLIED
13 | WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
14 | MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
15 | EVENT SHALL THE FREEBSD PROJECT OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
16 | INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
17 | BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
18 | DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
19 | LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
20 | OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
21 | OF THE POSSIBILITY OF SUCH DAMAGE.
22 | */
23 | package org.lobobrowser.ua;
24 |
25 | /**
26 | * Represents a collection of URL parameters.
27 | *
28 | * @author J. H. S.
29 | */
30 | public interface ParameterInfo {
31 | /**
32 | * Gets the POST encoding for the parameters.
33 | */
34 | public String getEncoding();
35 |
36 | /**
37 | * Gets the array of parameters.
38 | */
39 | public Parameter[] getParameters();
40 | }
41 |
--------------------------------------------------------------------------------
/src/Platform_Public_API/org/lobobrowser/ua/package.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | Contains interfaces that need to be implemented by a browser (like Lobo)
4 | in order to service Lobo extensions.
5 |
6 |
7 |
--------------------------------------------------------------------------------
/src/Primary_Extension/.classpath:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/src/Primary_Extension/.project:
--------------------------------------------------------------------------------
1 |
2 |
3 | Primary_Extension
4 |
5 |
6 |
7 |
8 |
9 | org.eclipse.jdt.core.javabuilder
10 |
11 |
12 |
13 |
14 |
15 | org.eclipse.jem.workbench.JavaEMFNature
16 | org.eclipse.jdt.core.javanature
17 | org.eclipse.jem.beaninfo.BeanInfoNature
18 |
19 |
20 |
--------------------------------------------------------------------------------
/src/Primary_Extension/README.txt:
--------------------------------------------------------------------------------
1 | This project is the default browser plugin. It includes
2 | clientlets for HTML, XAMJ and various simple mime types.
3 | The extension.properties file contains meta-information about
4 | the extension.
5 |
6 | This module is released under the GPL license.
7 |
--------------------------------------------------------------------------------
/src/Primary_Extension/gngr-extension.properties:
--------------------------------------------------------------------------------
1 | extension.name=gngr's Primary Extension
2 | extension.description=This is the primary extension of the gngr browser.\r\n\
3 | It implements clientlets for HTML, XAMJ, text files,\r\n\
4 | file downloading and others.
5 | extension.by=gngr project
6 | extension.version=0.0.1
7 | extension.class=org.lobobrowser.primary.ext.ExtensionImpl
8 |
9 | # Priority is 0 to 10, but only primary extension can have 10.
10 | extension.priority=10
11 |
--------------------------------------------------------------------------------
/src/Primary_Extension/images/back.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/gngrOrg/gngr/a0df8a7a8ced1d4ceae98edf933a4c52baf36e51/src/Primary_Extension/images/back.gif
--------------------------------------------------------------------------------
/src/Primary_Extension/images/forward.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/gngrOrg/gngr/a0df8a7a8ced1d4ceae98edf933a4c52baf36e51/src/Primary_Extension/images/forward.gif
--------------------------------------------------------------------------------
/src/Primary_Extension/images/go.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/gngrOrg/gngr/a0df8a7a8ced1d4ceae98edf933a4c52baf36e51/src/Primary_Extension/images/go.gif
--------------------------------------------------------------------------------
/src/Primary_Extension/images/go_disabled.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/gngrOrg/gngr/a0df8a7a8ced1d4ceae98edf933a4c52baf36e51/src/Primary_Extension/images/go_disabled.gif
--------------------------------------------------------------------------------
/src/Primary_Extension/images/info.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/gngrOrg/gngr/a0df8a7a8ced1d4ceae98edf933a4c52baf36e51/src/Primary_Extension/images/info.gif
--------------------------------------------------------------------------------
/src/Primary_Extension/images/internet_search.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/gngrOrg/gngr/a0df8a7a8ced1d4ceae98edf933a4c52baf36e51/src/Primary_Extension/images/internet_search.png
--------------------------------------------------------------------------------
/src/Primary_Extension/images/refresh.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/gngrOrg/gngr/a0df8a7a8ced1d4ceae98edf933a4c52baf36e51/src/Primary_Extension/images/refresh.gif
--------------------------------------------------------------------------------
/src/Primary_Extension/images/refresh_disabled.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/gngrOrg/gngr/a0df8a7a8ced1d4ceae98edf933a4c52baf36e51/src/Primary_Extension/images/refresh_disabled.gif
--------------------------------------------------------------------------------
/src/Primary_Extension/images/stop.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/gngrOrg/gngr/a0df8a7a8ced1d4ceae98edf933a4c52baf36e51/src/Primary_Extension/images/stop.gif
--------------------------------------------------------------------------------
/src/Primary_Extension/images/stop_disabled.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/gngrOrg/gngr/a0df8a7a8ced1d4ceae98edf933a4c52baf36e51/src/Primary_Extension/images/stop_disabled.gif
--------------------------------------------------------------------------------
/src/Primary_Extension/images/warning.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/gngrOrg/gngr/a0df8a7a8ced1d4ceae98edf933a4c52baf36e51/src/Primary_Extension/images/warning.gif
--------------------------------------------------------------------------------
/src/Primary_Extension/org/lobobrowser/primary/ext/HistoryEntry.java:
--------------------------------------------------------------------------------
1 | /*
2 | GNU GENERAL PUBLIC LICENSE
3 | Copyright (C) 2006 The Lobo Project
4 |
5 | This program is free software; you can redistribute it and/or
6 | modify it under the terms of the GNU General Public
7 | License as published by the Free Software Foundation; either
8 | verion 2 of the License, or (at your option) any later version.
9 |
10 | This program is distributed in the hope that it will be useful,
11 | but WITHOUT ANY WARRANTY; without even the implied warranty of
12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 | General Public License for more details.
14 |
15 | You should have received a copy of the GNU General Public
16 | License along with this library; if not, write to the Free Software
17 | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
18 |
19 | Contact info: lobochief@users.sourceforge.net
20 | */
21 | package org.lobobrowser.primary.ext;
22 |
23 | import java.net.URL;
24 |
25 | public class HistoryEntry {
26 | private final java.net.URL url;
27 | private final long timetstamp;
28 | private final T itemInfo;
29 |
30 | public HistoryEntry(final URL url, final long timetstamp, final T itemInfo) {
31 | super();
32 | this.url = url;
33 | this.timetstamp = timetstamp;
34 | this.itemInfo = itemInfo;
35 | }
36 |
37 | public T getItemInfo() {
38 | return itemInfo;
39 | }
40 |
41 | public long getTimetstamp() {
42 | return timetstamp;
43 | }
44 |
45 | public java.net.URL getUrl() {
46 | return url;
47 | }
48 | }
49 |
--------------------------------------------------------------------------------
/src/Primary_Extension/org/lobobrowser/primary/ext/HostEntry.java:
--------------------------------------------------------------------------------
1 | /*
2 | GNU GENERAL PUBLIC LICENSE
3 | Copyright (C) 2006 The Lobo Project
4 |
5 | This program is free software; you can redistribute it and/or
6 | modify it under the terms of the GNU General Public
7 | License as published by the Free Software Foundation; either
8 | verion 2 of the License, or (at your option) any later version.
9 |
10 | This program is distributed in the hope that it will be useful,
11 | but WITHOUT ANY WARRANTY; without even the implied warranty of
12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 | General Public License for more details.
14 |
15 | You should have received a copy of the GNU General Public
16 | License along with this library; if not, write to the Free Software
17 | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
18 |
19 | Contact info: lobochief@users.sourceforge.net
20 | */
21 | package org.lobobrowser.primary.ext;
22 |
23 | public class HostEntry {
24 | public final String host;
25 | public final long timestamp;
26 |
27 | public HostEntry(final String host, final long timestamp) {
28 | super();
29 | this.host = host;
30 | this.timestamp = timestamp;
31 | }
32 | }
33 |
--------------------------------------------------------------------------------
/src/Primary_Extension/org/lobobrowser/primary/ext/MenuAdapter.java:
--------------------------------------------------------------------------------
1 | /*
2 | GNU GENERAL PUBLIC LICENSE
3 | Copyright (C) 2006 The Lobo Project
4 |
5 | This program is free software; you can redistribute it and/or
6 | modify it under the terms of the GNU General Public
7 | License as published by the Free Software Foundation; either
8 | verion 2 of the License, or (at your option) any later version.
9 |
10 | This program is distributed in the hope that it will be useful,
11 | but WITHOUT ANY WARRANTY; without even the implied warranty of
12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 | General Public License for more details.
14 |
15 | You should have received a copy of the GNU General Public
16 | License along with this library; if not, write to the Free Software
17 | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
18 |
19 | Contact info: lobochief@users.sourceforge.net
20 | */
21 | package org.lobobrowser.primary.ext;
22 |
23 | import javax.swing.event.MenuEvent;
24 | import javax.swing.event.MenuListener;
25 |
26 | public abstract class MenuAdapter implements MenuListener {
27 | public void menuCanceled(final MenuEvent e) {
28 | }
29 |
30 | public void menuDeselected(final MenuEvent e) {
31 | }
32 |
33 | public void menuSelected(final MenuEvent e) {
34 | }
35 | }
36 |
--------------------------------------------------------------------------------
/src/Primary_Extension/org/lobobrowser/primary/ext/PrimaryStreamHandlerFactory.java:
--------------------------------------------------------------------------------
1 | /*
2 | GNU GENERAL PUBLIC LICENSE
3 | Copyright (C) 2006 The Lobo Project
4 |
5 | This program is free software; you can redistribute it and/or
6 | modify it under the terms of the GNU General Public
7 | License as published by the Free Software Foundation; either
8 | verion 2 of the License, or (at your option) any later version.
9 |
10 | This program is distributed in the hope that it will be useful,
11 | but WITHOUT ANY WARRANTY; without even the implied warranty of
12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 | General Public License for more details.
14 |
15 | You should have received a copy of the GNU General Public
16 | License along with this library; if not, write to the Free Software
17 | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
18 |
19 | Contact info: lobochief@users.sourceforge.net
20 | */
21 | package org.lobobrowser.primary.ext;
22 |
23 | import java.net.URLStreamHandler;
24 | import java.net.URLStreamHandlerFactory;
25 |
26 | public class PrimaryStreamHandlerFactory implements URLStreamHandlerFactory {
27 |
28 | public PrimaryStreamHandlerFactory() {
29 | }
30 |
31 | public URLStreamHandler createURLStreamHandler(final String protocol) {
32 | if ("about".equals(protocol)) {
33 | return new org.lobobrowser.protocol.about.Handler();
34 | } else if ("data".equals(protocol)) {
35 | return new org.lobobrowser.protocol.data.Handler();
36 | } else {
37 | return null;
38 | }
39 | }
40 | }
41 |
--------------------------------------------------------------------------------
/src/Primary_Extension/org/lobobrowser/primary/gui/AbstractItemEditor.java:
--------------------------------------------------------------------------------
1 | /*
2 | GNU GENERAL PUBLIC LICENSE
3 | Copyright (C) 2006 The Lobo Project
4 |
5 | This program is free software; you can redistribute it and/or
6 | modify it under the terms of the GNU General Public
7 | License as published by the Free Software Foundation; either
8 | verion 2 of the License, or (at your option) any later version.
9 |
10 | This program is distributed in the hope that it will be useful,
11 | but WITHOUT ANY WARRANTY; without even the implied warranty of
12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 | General Public License for more details.
14 |
15 | You should have received a copy of the GNU General Public
16 | License along with this library; if not, write to the Free Software
17 | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
18 |
19 | Contact info: lobochief@users.sourceforge.net
20 | */
21 | package org.lobobrowser.primary.gui;
22 |
23 | import javax.swing.JComponent;
24 |
25 | public abstract class AbstractItemEditor extends JComponent {
26 | private static final long serialVersionUID = 8568024677021154557L;
27 |
28 | public abstract void setItem(T item);
29 |
30 | public abstract T getItem();
31 |
32 | public abstract void validateItem() throws ValidationException;
33 | }
34 |
--------------------------------------------------------------------------------
/src/Primary_Extension/org/lobobrowser/primary/gui/FieldType.java:
--------------------------------------------------------------------------------
1 | /*
2 | GNU GENERAL PUBLIC LICENSE
3 | Copyright (C) 2006 The Lobo Project
4 |
5 | This program is free software; you can redistribute it and/or
6 | modify it under the terms of the GNU General Public
7 | License as published by the Free Software Foundation; either
8 | verion 2 of the License, or (at your option) any later version.
9 |
10 | This program is distributed in the hope that it will be useful,
11 | but WITHOUT ANY WARRANTY; without even the implied warranty of
12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 | General Public License for more details.
14 |
15 | You should have received a copy of the GNU General Public
16 | License along with this library; if not, write to the Free Software
17 | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
18 |
19 | Contact info: lobochief@users.sourceforge.net
20 | */
21 | package org.lobobrowser.primary.gui;
22 |
23 | public enum FieldType {
24 | TEXT, PASSWORD
25 | }
26 |
--------------------------------------------------------------------------------
/src/Primary_Extension/org/lobobrowser/primary/gui/ItemEditorFactory.java:
--------------------------------------------------------------------------------
1 | /*
2 | GNU GENERAL PUBLIC LICENSE
3 | Copyright (C) 2006 The Lobo Project
4 |
5 | This program is free software; you can redistribute it and/or
6 | modify it under the terms of the GNU General Public
7 | License as published by the Free Software Foundation; either
8 | verion 2 of the License, or (at your option) any later version.
9 |
10 | This program is distributed in the hope that it will be useful,
11 | but WITHOUT ANY WARRANTY; without even the implied warranty of
12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 | General Public License for more details.
14 |
15 | You should have received a copy of the GNU General Public
16 | License along with this library; if not, write to the Free Software
17 | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
18 |
19 | Contact info: lobochief@users.sourceforge.net
20 | */
21 | package org.lobobrowser.primary.gui;
22 |
23 | public interface ItemEditorFactory {
24 | public AbstractItemEditor createItemEditor();
25 | }
26 |
--------------------------------------------------------------------------------
/src/Primary_Extension/org/lobobrowser/primary/gui/ValidationException.java:
--------------------------------------------------------------------------------
1 | /*
2 | GNU GENERAL PUBLIC LICENSE
3 | Copyright (C) 2006 The Lobo Project
4 |
5 | This program is free software; you can redistribute it and/or
6 | modify it under the terms of the GNU General Public
7 | License as published by the Free Software Foundation; either
8 | verion 2 of the License, or (at your option) any later version.
9 |
10 | This program is distributed in the hope that it will be useful,
11 | but WITHOUT ANY WARRANTY; without even the implied warranty of
12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 | General Public License for more details.
14 |
15 | You should have received a copy of the GNU General Public
16 | License along with this library; if not, write to the Free Software
17 | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
18 |
19 | Contact info: lobochief@users.sourceforge.net
20 | */
21 | package org.lobobrowser.primary.gui;
22 |
23 | public class ValidationException extends Exception {
24 | private static final long serialVersionUID = -2982468047856404314L;
25 |
26 | public ValidationException() {
27 | super();
28 | }
29 |
30 | public ValidationException(final String message, final Throwable cause) {
31 | super(message, cause);
32 | }
33 |
34 | public ValidationException(final String message) {
35 | super(message);
36 | }
37 |
38 | public ValidationException(final Throwable cause) {
39 | super(cause);
40 | }
41 | }
42 |
--------------------------------------------------------------------------------
/src/Primary_Extension/org/lobobrowser/primary/gui/prefs/AbstractSettingsUI.java:
--------------------------------------------------------------------------------
1 | /*
2 | GNU GENERAL PUBLIC LICENSE
3 | Copyright (C) 2006 The Lobo Project
4 |
5 | This program is free software; you can redistribute it and/or
6 | modify it under the terms of the GNU General Public
7 | License as published by the Free Software Foundation; either
8 | verion 2 of the License, or (at your option) any later version.
9 |
10 | This program is distributed in the hope that it will be useful,
11 | but WITHOUT ANY WARRANTY; without even the implied warranty of
12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 | General Public License for more details.
14 |
15 | You should have received a copy of the GNU General Public
16 | License along with this library; if not, write to the Free Software
17 | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
18 |
19 | Contact info: lobochief@users.sourceforge.net
20 | */
21 | package org.lobobrowser.primary.gui.prefs;
22 |
23 | import javax.swing.JPanel;
24 |
25 | import org.lobobrowser.primary.gui.ValidationException;
26 |
27 | public abstract class AbstractSettingsUI extends JPanel {
28 | private static final long serialVersionUID = -7707598586296275419L;
29 |
30 | public abstract void save() throws ValidationException;
31 |
32 | public abstract void restoreDefaults();
33 | }
34 |
--------------------------------------------------------------------------------
/src/Primary_Extension/org/lobobrowser/primary/gui/prefs/SettingsInfo.java:
--------------------------------------------------------------------------------
1 | /*
2 | GNU GENERAL PUBLIC LICENSE
3 | Copyright (C) 2006 The Lobo Project
4 |
5 | This program is free software; you can redistribute it and/or
6 | modify it under the terms of the GNU General Public
7 | License as published by the Free Software Foundation; either
8 | verion 2 of the License, or (at your option) any later version.
9 |
10 | This program is distributed in the hope that it will be useful,
11 | but WITHOUT ANY WARRANTY; without even the implied warranty of
12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 | General Public License for more details.
14 |
15 | You should have received a copy of the GNU General Public
16 | License along with this library; if not, write to the Free Software
17 | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
18 |
19 | Contact info: lobochief@users.sourceforge.net
20 | */
21 | package org.lobobrowser.primary.gui.prefs;
22 |
23 | public interface SettingsInfo {
24 | public String getName();
25 |
26 | public String getDescription();
27 |
28 | public AbstractSettingsUI createSettingsUI();
29 | }
30 |
--------------------------------------------------------------------------------
/src/Primary_Extension/org/lobobrowser/protocol/data/Handler.java:
--------------------------------------------------------------------------------
1 | package org.lobobrowser.protocol.data;
2 |
3 | import java.io.IOException;
4 | import java.net.URL;
5 | import java.net.URLConnection;
6 | import java.net.URLStreamHandler;
7 |
8 | /**
9 | * http://www.ietf.org/rfc/rfc2397.txt
10 | *
11 | *
12 | * dataurl := "data:" [ mediatype ] [ ";base64" ] "," data mediatype := [ type
13 | * "/" subtype ] *( ";" parameter ) data := *urlchar parameter := attribute "="
14 | * value
15 | *
16 | *
17 | * @author toenz
18 | *
19 | */
20 | public class Handler extends URLStreamHandler {
21 |
22 | @Override
23 | protected URLConnection openConnection(final URL url) throws IOException {
24 | return new DataURLConnection(url);
25 | }
26 |
27 | @Override
28 | protected void parseURL(final URL u, final String spec, final int start, final int limit) {
29 | final int index = spec.toLowerCase().indexOf(":");
30 | final String protocol = "data";
31 | final String path = spec.substring(index + 1);
32 |
33 | setURL(u, protocol,
34 | /* host */null,
35 | /* port */80,
36 | /* authority */null,
37 | /* userinfo */null,
38 | /* path */path,
39 | /* query */null,
40 | /* ref */null);
41 | }
42 |
43 | @Override
44 | protected String toExternalForm(final URL u) {
45 | return u.getProtocol() + ":" + u.getPath();
46 | }
47 |
48 | }
49 |
--------------------------------------------------------------------------------
/src/XAMJ_Build/.externalToolBuilders/API_Doc_Builder.launch:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/src/XAMJ_Build/.externalToolBuilders/Ant Builder.launch:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/src/XAMJ_Build/.externalToolBuilders/Installer Builder.launch:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/src/XAMJ_Build/.project:
--------------------------------------------------------------------------------
1 |
2 |
3 | XAMJ_Build
4 |
5 |
6 |
7 |
8 |
9 | org.eclipse.ui.externaltools.ExternalToolBuilder
10 | full,incremental,
11 |
12 |
13 | LaunchConfigHandle
14 | <project>/.externalToolBuilders/Ant Builder.launch
15 |
16 |
17 |
18 |
19 | org.eclipse.ui.externaltools.ExternalToolBuilder
20 | full,incremental,
21 |
22 |
23 | LaunchConfigHandle
24 | <project>/.externalToolBuilders/Installer Builder.launch
25 |
26 |
27 |
28 |
29 | org.eclipse.ui.externaltools.ExternalToolBuilder
30 | full,incremental,
31 |
32 |
33 | LaunchConfigHandle
34 | <project>/.externalToolBuilders/API_Doc_Builder.launch
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
--------------------------------------------------------------------------------
/src/XAMJ_Build/CONTRIBUTORS.txt:
--------------------------------------------------------------------------------
1 |
2 | Contributors to the Lobo Project appear
3 | below, roughly in order of arrival to the
4 | project:
5 |
6 | - Jose H. Solorzano (lobochief)
7 | Started the Lobo project (originally
8 | as the XAMJ Project). Project lead
9 | and main developer.
10 |
11 | - Roger Toenz (guenze)
12 | Has contributed several patches.
13 |
14 | - Oswaldo Dantas
15 | Contributed new Lobo logo.
16 |
17 | - V??k Cvachou?ek (vtec)
18 | Has contributed several patches.
19 |
20 | - Guillaume WALLET (gwallet)
21 | Contributed Window.setInterval()
22 | patch.
23 |
24 | - Andrey Chorniy (andrey_chorniy)
25 | Contributed implementation of SUB
26 | and SUP.
27 |
28 | - Trejkaz (trejkaz)
29 | Font fallback patch - fixes Chinese
30 | characters.
31 |
32 | - Joerg Ruethschilling (jr8)
33 | scrollTo and resizeTo patch.
34 |
35 | - Vinay Agarwal (vinaykagarwal)
36 | An Eclipse project tweak.
37 |
38 | - James Dempsey (jdempsey)
39 | Java 7 fix.
40 |
41 | - Thanks also to many anonymous
42 | contributors.
43 |
--------------------------------------------------------------------------------
/src/XAMJ_Build/README.txt:
--------------------------------------------------------------------------------
1 |
2 | This is Lobo, the Java-based web browser.
3 |
4 | To run Lobo look for its Program Group or
5 | desktop launcher. In case you just downloaded
6 | the Lobo files and not the installer, try
7 |
8 | java -jar lobo.jar
9 |
10 | The Lobo browser is released under a GPLv2 license.
11 | See LICENSE.txt for additional details.
12 | For information on how to obtain the source code,
13 | see http://lobobrowser.org/sourcecode.jsp
14 |
15 | Note that lobo-pub.jar (the extensions API) is
16 | released under a permissive FreeBSD style license,
17 | which is compatible with the GPL.
18 |
19 | Home Page: http://lobobrowser.org
20 | Contact: http://lobobrowser.org/contact.jsp
21 |
--------------------------------------------------------------------------------
/src/XAMJ_Build/default-shortcut-spec.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
15 |
25 |
26 |
27 |
--------------------------------------------------------------------------------
/src/XAMJ_Build/ext/antlr4-4.5.3.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/gngrOrg/gngr/a0df8a7a8ced1d4ceae98edf933a4c52baf36e51/src/XAMJ_Build/ext/antlr4-4.5.3.jar
--------------------------------------------------------------------------------
/src/XAMJ_Build/ext/js.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/gngrOrg/gngr/a0df8a7a8ced1d4ceae98edf933a4c52baf36e51/src/XAMJ_Build/ext/js.jar
--------------------------------------------------------------------------------
/src/XAMJ_Build/ext/jstyleDomBridge.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/gngrOrg/gngr/a0df8a7a8ced1d4ceae98edf933a4c52baf36e51/src/XAMJ_Build/ext/jstyleDomBridge.jar
--------------------------------------------------------------------------------
/src/XAMJ_Build/ext/jstyleparser-3.3-SNAPSHOT.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/gngrOrg/gngr/a0df8a7a8ced1d4ceae98edf933a4c52baf36e51/src/XAMJ_Build/ext/jstyleparser-3.3-SNAPSHOT.jar
--------------------------------------------------------------------------------
/src/XAMJ_Build/ext/sac.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/gngrOrg/gngr/a0df8a7a8ced1d4ceae98edf933a4c52baf36e51/src/XAMJ_Build/ext/sac.jar
--------------------------------------------------------------------------------
/src/XAMJ_Build/ext/slf4j-api-1.7.25.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/gngrOrg/gngr/a0df8a7a8ced1d4ceae98edf933a4c52baf36e51/src/XAMJ_Build/ext/slf4j-api-1.7.25.jar
--------------------------------------------------------------------------------
/src/XAMJ_Build/ext/unbescape-1.1.5.RELEASE.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/gngrOrg/gngr/a0df8a7a8ced1d4ceae98edf933a4c52baf36e51/src/XAMJ_Build/ext/unbescape-1.1.5.RELEASE.jar
--------------------------------------------------------------------------------
/src/XAMJ_Build/org.eclipse.jdt.annotation_2.0.100.v20150311-1658.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/gngrOrg/gngr/a0df8a7a8ced1d4ceae98edf933a4c52baf36e51/src/XAMJ_Build/org.eclipse.jdt.annotation_2.0.100.v20150311-1658.jar
--------------------------------------------------------------------------------
/src/XAMJ_Build/process-panel.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | -jar
6 | $INSTALL_PATH/lobo.jar
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/src/XAMJ_Build/re_manifest.mf:
--------------------------------------------------------------------------------
1 | Manifest-Version: 1.0
2 | Created-By: The Lobo Project
3 | Main-Class: org.lobobrowser.main.EntryPoint
4 | Class-Path: lobo-pub.jar
5 | Sealed: true
6 |
--------------------------------------------------------------------------------
/src/XAMJ_Build/windows-shortcut-spec.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
14 |
23 |
24 |
25 |
--------------------------------------------------------------------------------
/src/build.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
--------------------------------------------------------------------------------