code
string
repo_name
string
path
string
language
string
license
string
size
int64
package org.wiztools.restclient.ui.resbody; import java.awt.Component; import javax.swing.JPanel; import org.wiztools.restclient.bean.ContentType; /** * * @author subwiz */ public abstract class AbstractResBody extends JPanel implements ResBodyPanel { protected byte[] body; protected ContentType type; ...
zyjbupt-restclient
restclient-ui/src/main/java/org/wiztools/restclient/ui/resbody/AbstractResBody.java
Java
asf20
743
package org.wiztools.restclient.ui.resbody; /** * * @author subwiz */ public class ResBodyNonePanel extends AbstractResBody { @Override public void clearUI() { // do nothing! } }
zyjbupt-restclient
restclient-ui/src/main/java/org/wiztools/restclient/ui/resbody/ResBodyNonePanel.java
Java
asf20
209
package org.wiztools.restclient.ui.resbody; import com.google.inject.ImplementedBy; import org.wiztools.restclient.bean.ContentType; import org.wiztools.restclient.ui.ViewPanel; /** * * @author subwiz */ @ImplementedBy(ResBodyPanelImpl.class) public interface ResBodyPanel extends ViewPanel { void setBody(byte[...
zyjbupt-restclient
restclient-ui/src/main/java/org/wiztools/restclient/ui/resbody/ResBodyPanel.java
Java
asf20
371
package org.wiztools.restclient.ui.resbody; import java.awt.GridLayout; import javax.annotation.PostConstruct; import javax.swing.JTextArea; import org.wiztools.restclient.bean.ContentType; import org.wiztools.restclient.ui.UIUtil; import org.wiztools.restclient.util.HexDump; /** * * @author subwiz */ public class...
zyjbupt-restclient
restclient-ui/src/main/java/org/wiztools/restclient/ui/resbody/ResBodyBinaryPanel.java
Java
asf20
969
package org.wiztools.restclient.ui.resbody; import java.awt.Font; import java.awt.GridLayout; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.awt.event.MouseAdapter; import java.awt.event.MouseEvent; import java.io.IOException; import java.util.concurrent.ExecutorService; import ja...
zyjbupt-restclient
restclient-ui/src/main/java/org/wiztools/restclient/ui/resbody/ResBodyTextPanel.java
Java
asf20
11,897
package org.wiztools.restclient.ui; /** * * @author Subhash */ public enum FileChooserType { OPEN_REQUEST, OPEN_RESPONSE, OPEN_ARCHIVE, OPEN_REQUEST_BODY, OPEN_HISTORY, OPEN_TEST_SCRIPT, OPEN_GENERIC, SAVE_REQUEST, SAVE_RESPONSE, SAVE_ARCHIVE, SAVE_RESPONSE_BODY, SAV...
zyjbupt-restclient
restclient-ui/src/main/java/org/wiztools/restclient/ui/FileChooserType.java
Java
asf20
333
package org.wiztools.restclient.ui; import java.awt.Font; /** * * @author subwiz */ public interface FontableEditor { public String FONT_NAME_PROPERTY = "font.options.font"; public String FONT_SIZE_PROPERTY = "font.options.fontSize"; public void setEditorFont(Font font); public Font getEditorF...
zyjbupt-restclient
restclient-ui/src/main/java/org/wiztools/restclient/ui/FontableEditor.java
Java
asf20
329
package org.wiztools.restclient.ui; import java.awt.Component; import java.awt.Desktop; import java.awt.Toolkit; import java.awt.event.*; import java.io.File; import java.io.IOException; import java.net.URI; import java.net.URISyntaxException; import java.util.List; import java.util.logging.Level; import java.util.log...
zyjbupt-restclient
restclient-ui/src/main/java/org/wiztools/restclient/ui/RESTMain.java
Java
asf20
37,066
package org.wiztools.restclient.ui.restest; import java.util.List; import javax.swing.table.AbstractTableModel; import org.wiztools.restclient.bean.TestExceptionResult; /** * * @author subwiz */ class FailureTableModel extends AbstractTableModel { private Object[] failures; public void setData(List<TestE...
zyjbupt-restclient
restclient-ui/src/main/java/org/wiztools/restclient/ui/restest/FailureTableModel.java
Java
asf20
1,178
package org.wiztools.restclient.ui.restest; import com.google.inject.ImplementedBy; import org.wiztools.restclient.bean.TestResult; import org.wiztools.restclient.ui.ViewPanel; /** * * @author subwiz */ @ImplementedBy(ResTestPanelImpl.class) public interface ResTestPanel extends ViewPanel { TestResult getTestR...
zyjbupt-restclient
restclient-ui/src/main/java/org/wiztools/restclient/ui/restest/ResTestPanel.java
Java
asf20
374
package org.wiztools.restclient.ui.restest; import java.awt.*; import java.util.Collections; import javax.annotation.PostConstruct; import javax.swing.*; import org.wiztools.restclient.bean.TestResult; import org.wiztools.restclient.ui.UIUtil; /** * * @author subwiz */ class ResTestPanelImpl extends JPanel impleme...
zyjbupt-restclient
restclient-ui/src/main/java/org/wiztools/restclient/ui/restest/ResTestPanelImpl.java
Java
asf20
6,293
package org.wiztools.restclient.ui; import java.awt.AWTEvent; import java.awt.BorderLayout; import java.awt.Dimension; import java.awt.FlowLayout; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.io.File; import java.io.IOException; import java.util.ArrayList; import java.util.Linke...
zyjbupt-restclient
restclient-ui/src/main/java/org/wiztools/restclient/ui/KeyValMultiEntryDialog.java
Java
asf20
5,468
package org.wiztools.restclient.ui; import java.io.File; import javax.swing.filechooser.FileFilter; import org.wiztools.restclient.FileType; /** * * @author Subhash */ public class RCFileFilter extends FileFilter { private final String type; public RCFileFilter(String type){ this.type = type; ...
zyjbupt-restclient
restclient-ui/src/main/java/org/wiztools/restclient/ui/RCFileFilter.java
Java
asf20
1,520
package org.wiztools.restclient.ui; import java.awt.AWTEvent; import java.awt.BorderLayout; import java.awt.FlowLayout; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import javax.inject.Inject; import javax.swing.JButton; import javax.swing.JPanel; import javax.swing.JScrollPane; import java...
zyjbupt-restclient
restclient-ui/src/main/java/org/wiztools/restclient/ui/MessageDialog.java
Java
asf20
2,386
package org.wiztools.restclient.ui; import com.google.inject.ImplementedBy; import java.awt.Component; import java.io.File; import javax.swing.JFrame; /** * * @author subwiz */ @ImplementedBy(RESTMain.class) public interface RESTUserInterface { public JFrame getFrame(); public File getOpenFile(final File...
zyjbupt-restclient
restclient-ui/src/main/java/org/wiztools/restclient/ui/RESTUserInterface.java
Java
asf20
514
package org.wiztools.restclient.ui.reqmethod; import java.awt.Component; import java.awt.FlowLayout; import java.awt.GridLayout; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import javax.annotation.PostConstruct; import javax.inject.Inject; import javax.swing.BorderFactory; import javax.swi...
zyjbupt-restclient
restclient-ui/src/main/java/org/wiztools/restclient/ui/reqmethod/ReqMethodPanelImpl.java
Java
asf20
5,301
package org.wiztools.restclient.ui.reqmethod; import com.google.inject.ImplementedBy; import org.wiztools.restclient.bean.HTTPMethod; import org.wiztools.restclient.ui.ViewPanel; /** * * @author subwiz */ @ImplementedBy(ReqMethodPanelImpl.class) public interface ReqMethodPanel extends ViewPanel { boolean does...
zyjbupt-restclient
restclient-ui/src/main/java/org/wiztools/restclient/ui/reqmethod/ReqMethodPanel.java
Java
asf20
447
package org.wiztools.restclient.ui.resheader; import javax.swing.table.AbstractTableModel; import org.wiztools.commons.MultiValueMap; /** * * @author subwiz */ class ResponseHeaderTableModel extends AbstractTableModel { private final String[] title = new String[]{"HTTP Header", "Value"}; private Strin...
zyjbupt-restclient
restclient-ui/src/main/java/org/wiztools/restclient/ui/resheader/ResponseHeaderTableModel.java
Java
asf20
1,528
package org.wiztools.restclient.ui.resheader; import com.google.inject.ImplementedBy; import org.wiztools.commons.MultiValueMap; import org.wiztools.restclient.ui.ViewPanel; /** * * @author subwiz */ @ImplementedBy(ResHeaderPanelImpl.class) public interface ResHeaderPanel extends ViewPanel { MultiValueMap<Stri...
zyjbupt-restclient
restclient-ui/src/main/java/org/wiztools/restclient/ui/resheader/ResHeaderPanel.java
Java
asf20
408
package org.wiztools.restclient.ui.resheader; import java.awt.Component; import java.awt.Dimension; import java.awt.GridLayout; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.awt.event.MouseAdapter; import java.awt.event.MouseEvent; import java.net.HttpCookie; import java.util.Arr...
zyjbupt-restclient
restclient-ui/src/main/java/org/wiztools/restclient/ui/resheader/ResHeaderPanelImpl.java
Java
asf20
7,434
package org.wiztools.restclient.ui; import java.awt.AWTEvent; import java.awt.BorderLayout; import java.awt.FlowLayout; import java.awt.GridLayout; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import javax.inject.Inject; import javax.swing.*; import org.wiztools.restclient.MessageI18N; impo...
zyjbupt-restclient
restclient-ui/src/main/java/org/wiztools/restclient/ui/AboutDialog.java
Java
asf20
2,462
package org.wiztools.restclient.ui; import java.util.List; import java.util.Map; /** * * @author Subhash */ interface MultiEntryAdd { public void add(Map<String, String> keyValuePair, List<String> invalidLines); }
zyjbupt-restclient
restclient-ui/src/main/java/org/wiztools/restclient/ui/MultiEntryAdd.java
Java
asf20
223
package org.wiztools.restclient.ui.reqetc; import java.awt.Component; import java.awt.FlowLayout; import java.awt.GridLayout; import javax.annotation.PostConstruct; import javax.swing.*; import org.wiztools.restclient.bean.HTTPVersion; /** * * @author subwiz */ public class ReqEtcPanelImpl extends JPanel implement...
zyjbupt-restclient
restclient-ui/src/main/java/org/wiztools/restclient/ui/reqetc/ReqEtcPanelImpl.java
Java
asf20
2,942
package org.wiztools.restclient.ui.reqetc; import com.google.inject.ImplementedBy; import org.wiztools.restclient.bean.HTTPVersion; import org.wiztools.restclient.ui.ViewPanel; /** * * @author subwiz */ @ImplementedBy(ReqEtcPanelImpl.class) public interface ReqEtcPanel extends ViewPanel { HTTPVersion getHttpVe...
zyjbupt-restclient
restclient-ui/src/main/java/org/wiztools/restclient/ui/reqetc/ReqEtcPanel.java
Java
asf20
539
package org.wiztools.restclient.ui; import java.awt.Component; import java.awt.FlowLayout; import java.awt.Font; import java.awt.Toolkit; import java.awt.datatransfer.Clipboard; import java.awt.datatransfer.StringSelection; import java.net.URL; import javax.swing.BorderFactory; import javax.swing.ImageIcon; import jav...
zyjbupt-restclient
restclient-ui/src/main/java/org/wiztools/restclient/ui/UIUtil.java
Java
asf20
1,955
package org.wiztools.restclient.ui; import javax.swing.JComponent; import javax.swing.JPopupMenu; import javax.swing.text.JTextComponent; /** * */ public interface ScriptEditor { public void setSyntax(TextEditorSyntax syntax); /** * view component for test script editor * * @return JCom...
zyjbupt-restclient
restclient-ui/src/main/java/org/wiztools/restclient/ui/ScriptEditor.java
Java
asf20
1,086
package org.wiztools.restclient.ui.reqgo; import java.io.BufferedReader; import java.io.File; import java.io.FileInputStream; import java.io.IOException; import java.io.InputStreamReader; import java.util.ArrayList; import java.util.Collections; import java.util.List; import org.wiztools.commons.Charsets; import org.w...
zyjbupt-restclient
restclient-ui/src/main/java/org/wiztools/restclient/ui/reqgo/UrlListPersistUtil.java
Java
asf20
1,538
package org.wiztools.restclient.ui.reqgo; import com.google.inject.ImplementedBy; import java.awt.event.ActionListener; import org.wiztools.restclient.ui.ViewPanel; /** * * @author subwiz */ @ImplementedBy(ReqUrlGoPanelImpl.class) public interface ReqUrlGoPanel extends ViewPanel { enum ACTION_TYPE{GO, CANCEL};...
zyjbupt-restclient
restclient-ui/src/main/java/org/wiztools/restclient/ui/reqgo/ReqUrlGoPanel.java
Java
asf20
581
package org.wiztools.restclient.ui.reqgo; import com.jidesoft.swing.AutoCompletion; import java.awt.BorderLayout; import java.awt.Component; import java.awt.Toolkit; import java.awt.event.*; import java.io.IOException; import java.net.MalformedURLException; import java.net.URL; import java.util.ArrayList; import java....
zyjbupt-restclient
restclient-ui/src/main/java/org/wiztools/restclient/ui/reqgo/ReqUrlGoPanelImpl.java
Java
asf20
7,462
package org.wiztools.restclient.ui; import java.awt.Font; import java.util.ArrayList; import java.util.Enumeration; import java.util.logging.Logger; import javax.swing.SwingUtilities; import javax.swing.UIManager; import org.wiztools.restclient.ServiceLocator; /** * * @author Subhash */ public class Main { ...
zyjbupt-restclient
restclient-ui/src/main/java/org/wiztools/restclient/ui/Main.java
Java
asf20
1,857
package org.wiztools.restclient.ui.option; import java.awt.FlowLayout; import java.awt.GridLayout; import java.util.List; import java.util.logging.Logger; import javax.swing.JCheckBox; import javax.swing.JPanel; import org.wiztools.restclient.IGlobalOptions; import org.wiztools.restclient.ServiceLocator; /** * * @a...
zyjbupt-restclient
restclient-ui/src/main/java/org/wiztools/restclient/ui/option/OptionsEtcPanel.java
Java
asf20
3,743
package org.wiztools.restclient.ui.option; import java.util.List; /** * * @author Subhash */ public interface IOptionsPanel { /** * Method for loading last saved option values from persistent storage. */ public void initOptions(); /** * Method for writing options to persistent stora...
zyjbupt-restclient
restclient-ui/src/main/java/org/wiztools/restclient/ui/option/IOptionsPanel.java
Java
asf20
982
package org.wiztools.restclient.ui.option; import java.awt.BorderLayout; import java.awt.Color; import java.awt.Dimension; import java.awt.FlowLayout; import java.awt.Font; import java.awt.GraphicsEnvironment; import java.awt.GridLayout; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import j...
zyjbupt-restclient
restclient-ui/src/main/java/org/wiztools/restclient/ui/option/OptionsFontPanel.java
Java
asf20
6,292
package org.wiztools.restclient.ui.option; import java.awt.AWTEvent; import java.awt.BorderLayout; import java.awt.FlowLayout; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.util.*; import java.util.logging.Level; import java.util.logging.Logger; import javax.annotation.PostConstr...
zyjbupt-restclient
restclient-ui/src/main/java/org/wiztools/restclient/ui/option/OptionsDialog.java
Java
asf20
5,553
package org.wiztools.restclient.ui.option; import java.awt.BorderLayout; import java.awt.FlowLayout; import java.awt.GridLayout; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.util.ArrayList; import java.util.List; import java.util.logging.Logger; import javax.swing.*; import org....
zyjbupt-restclient
restclient-ui/src/main/java/org/wiztools/restclient/ui/option/OptionsProxyPanel.java
Java
asf20
8,092
package org.wiztools.restclient.ui.option; import java.awt.BorderLayout; import java.awt.FlowLayout; import java.awt.GridLayout; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.util.List; import java.util.logging.Logger; import javax.swing.BorderFactory; import javax.swing.ButtonGr...
zyjbupt-restclient
restclient-ui/src/main/java/org/wiztools/restclient/ui/option/OptionsConnectionPanel.java
Java
asf20
8,658
package org.wiztools.restclient.ui; import java.io.File; import javax.swing.Icon; import javax.swing.filechooser.FileView; import org.wiztools.restclient.FileType; /** * * @author Subhash */ public class RCFileView extends FileView { @Override public String getTypeDescription(final File f){ String ...
zyjbupt-restclient
restclient-ui/src/main/java/org/wiztools/restclient/ui/RCFileView.java
Java
asf20
1,906
package org.wiztools.restclient.ui; import java.util.List; import org.wiztools.restclient.bean.HTTPAuthMethod; /** * * @author subwiz */ public class AuthHelper { public static final String NONE = "None"; public static final String BASIC = "BASIC"; public static final String DIGEST = "DIGEST"; publ...
zyjbupt-restclient
restclient-ui/src/main/java/org/wiztools/restclient/ui/AuthHelper.java
Java
asf20
1,728
package org.wiztools.restclient.ui; import java.awt.BorderLayout; import java.awt.Dimension; import java.awt.FlowLayout; import java.awt.GridLayout; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.awt.event.MouseAdapter; import java.awt.event.MouseEvent; import java.util.ArrayList;...
zyjbupt-restclient
restclient-ui/src/main/java/org/wiztools/restclient/ui/TwoColumnTablePanel.java
Java
asf20
8,631
package org.wiztools.restclient.ui; /** * * @author subwiz */ public final class ScriptEditorFactory { public static ScriptEditor getGroovyScriptEditor(){ return new RSyntaxScriptEditor(TextEditorSyntax.GROOVY); } public static ScriptEditor getXMLScriptEditor(){ return new RSyntaxS...
zyjbupt-restclient
restclient-ui/src/main/java/org/wiztools/restclient/ui/ScriptEditorFactory.java
Java
asf20
495
package org.wiztools.restclient.ui.history; import com.google.inject.ImplementedBy; import java.io.File; import java.io.IOException; import org.wiztools.restclient.bean.Request; import org.wiztools.restclient.util.ConfigUtil; /** * * @author subwiz */ @ImplementedBy(HistoryManagerImpl.class) public interface Histo...
zyjbupt-restclient
restclient-ui/src/main/java/org/wiztools/restclient/ui/history/HistoryManager.java
Java
asf20
834
package org.wiztools.restclient.ui.history; import java.io.File; import java.io.IOException; import java.util.LinkedList; import java.util.List; import javax.annotation.PostConstruct; import javax.inject.Inject; import javax.inject.Singleton; import org.wiztools.restclient.bean.Request; import org.wiztools.restclient....
zyjbupt-restclient
restclient-ui/src/main/java/org/wiztools/restclient/ui/history/HistoryManagerImpl.java
Java
asf20
4,792
package org.wiztools.restclient.ui; import java.awt.*; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; import javax.swing.*; import org.wiztools.commons.StringUtil; import o...
zyjbupt-restclient
restclient-ui/src/main/java/org/wiztools/restclient/ui/PasswordGenDialog.java
Java
asf20
6,971
package org.wiztools.restclient.ui; import java.awt.Component; import java.awt.Dimension; import java.awt.FlowLayout; import java.awt.GridLayout; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.util.Calendar; import javax.annotation.PostConstruct; import javax.inject.Inject; import...
zyjbupt-restclient
restclient-ui/src/main/java/org/wiztools/restclient/ui/StatusBarPanelImpl.java
Java
asf20
2,445
package org.wiztools.restclient.ui.resstatus; import java.awt.BorderLayout; import java.awt.Component; import javax.annotation.PostConstruct; import javax.swing.JLabel; import javax.swing.JPanel; import javax.swing.JTextField; import org.wiztools.restclient.ui.RESTView; /** * * @author subwiz */ public class ResSt...
zyjbupt-restclient
restclient-ui/src/main/java/org/wiztools/restclient/ui/resstatus/ResStatusPanelImpl.java
Java
asf20
1,113
package org.wiztools.restclient.ui.resstatus; import com.google.inject.ImplementedBy; import org.wiztools.restclient.ui.ViewPanel; /** * * @author subwiz */ @ImplementedBy(ResStatusPanelImpl.class) public interface ResStatusPanel extends ViewPanel { String getStatus(); void setStatus(String status); }
zyjbupt-restclient
restclient-ui/src/main/java/org/wiztools/restclient/ui/resstatus/ResStatusPanel.java
Java
asf20
316
package org.wiztools.restclient.server; import java.io.IOException; import java.io.InputStream; import java.nio.ByteBuffer; import java.nio.CharBuffer; import java.nio.charset.CharsetDecoder; import java.nio.charset.CodingErrorAction; import org.wiztools.commons.Charsets; import org.wiztools.commons.StreamUtil; /** ...
zyjbupt-restclient
restclient-server/src/main/java/org/wiztools/restclient/server/Util.java
Java
asf20
1,082
package org.wiztools.restclient.server; import java.io.IOException; import java.io.PrintWriter; import java.util.Enumeration; import javax.servlet.ServletException; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; /** * * @author sub...
zyjbupt-restclient
restclient-server/src/main/java/org/wiztools/restclient/server/TraceServlet.java
Java
asf20
3,789
package org.wiztools.restclient.server; import java.util.logging.Logger; import org.mortbay.jetty.Server; import org.mortbay.jetty.servlet.Context; import org.mortbay.jetty.servlet.ServletHolder; /** * * @author subwiz */ public class TraceServer { private static final Logger LOG = Logger.getLogger(TraceServe...
zyjbupt-restclient
restclient-server/src/main/java/org/wiztools/restclient/server/TraceServer.java
Java
asf20
2,172
package org.wiztools.restclient.idea; import com.intellij.openapi.application.ApplicationManager; import com.intellij.openapi.editor.Editor; import com.intellij.openapi.fileEditor.FileEditor; import com.intellij.openapi.fileEditor.TextEditor; import com.intellij.openapi.fileEditor.impl.text.TextEditorProvider; import ...
zyjbupt-restclient
idea-plugin/src/org/wiztools/restclient/idea/GroovyScriptEditor.java
Java
asf20
2,357
package org.wiztools.restclient.idea; import com.intellij.openapi.actionSystem.ActionGroup; import com.intellij.openapi.actionSystem.ActionManager; import com.intellij.openapi.components.ProjectComponent; import com.intellij.openapi.fileEditor.FileEditor; import com.intellij.openapi.fileEditor.impl.text.TextEdit...
zyjbupt-restclient
idea-plugin/src/org/wiztools/restclient/idea/RestClientProjectComponent.java
Java
asf20
5,143
package org.wiztools.restclient.idea; import com.intellij.openapi.application.ApplicationManager; import com.intellij.openapi.editor.Editor; import com.intellij.openapi.fileEditor.FileEditor; import com.intellij.openapi.fileEditor.TextEditor; import com.intellij.openapi.fileEditor.impl.text.TextEditorProvider; import ...
zyjbupt-restclient
idea-plugin/src/org/wiztools/restclient/idea/ResponseViewerScriptEditor.java
Java
asf20
2,367
package org.wiztools.restclient.idea; import com.intellij.openapi.actionSystem.AnAction; import com.intellij.openapi.actionSystem.AnActionEvent; import com.intellij.openapi.actionSystem.DataKeys; /** * about plugin action * * @author libing.chen@gmail.com */ public class AboutPluginAction extends AnAct...
zyjbupt-restclient
idea-plugin/src/org/wiztools/restclient/idea/AboutPluginAction.java
Java
asf20
681
#!/bin/sh svn log -v -r597:HEAD > rest-client-history-26.log
zyjbupt-restclient
log-26.sh
Shell
asf20
62
#!/usr/bin/python2.6 # # Simple http server to emulate api.playfoursquare.com import logging import shutil import sys import urlparse import SimpleHTTPServer import BaseHTTPServer class RequestHandler(BaseHTTPServer.BaseHTTPRequestHandler): """Handle playfoursquare.com requests, for testing.""" def do_GET(self...
zy86714-111
mock_server/playfoursquare.py
Python
asf20
2,253
/** * Copyright 2009 Joe LaPenna */ package com.joelapenna.foursquared; /** * @author Joe LaPenna (joe@joelapenna.com) */ public class FoursquaredSettings { public static final boolean USE_DEBUG_SERVER = false; public static final boolean DEBUG = false; public static final boolean LOCATION_DEBUG = f...
zy86714-111
examples/FoursquaredSettings.java
Java
asf20
444
/** * Copyright 2009 Joe LaPenna */ package com.joelapenna.foursquare; public class TestCredentials { public static final String oAuthConsumerKey = ""; public static final String oAuthConsumerSecret = ""; public static final String oAuthToken = ""; public static final String oAuthTokenSecret = "";...
zy86714-111
examples/TestCredentials.java
Java
asf20
441
#!/usr/bin/python import os import subprocess import sys BASEDIR = '../main/src/com/joelapenna/foursquare' TYPESDIR = '../captures/types/v1' captures = sys.argv[1:] if not captures: captures = os.listdir(TYPESDIR) for f in captures: basename = f.split('.')[0] javaname = ''.join([c.capitalize() for c in basena...
zy86714-111
util/generate.py
Python
asf20
772
#!/usr/bin/python """ Pull a oAuth protected page from foursquare. Expects ~/.oget to contain (one on each line): CONSUMER_KEY CONSUMER_KEY_SECRET USERNAME PASSWORD Don't forget to chmod 600 the file! """ import httplib import os import re import sys import urllib import urllib2 import urlparse import user from xml....
zy86714-111
util/oget.py
Python
asf20
3,416
#!/usr/bin/python import datetime import sys import textwrap import common from xml.dom import pulldom PARSER = """\ /** * Copyright 2009 Joe LaPenna */ package com.joelapenna.foursquare.parsers; import com.joelapenna.foursquare.Foursquare; import com.joelapenna.foursquare.error.FoursquareError; import com.joel...
zy86714-111
util/gen_parser.py
Python
asf20
4,392
#!/usr/bin/python import logging from xml.dom import minidom from xml.dom import pulldom BOOLEAN = "boolean" STRING = "String" GROUP = "Group" # Interfaces that all FoursquareTypes implement. DEFAULT_INTERFACES = ['FoursquareType'] # Interfaces that specific FoursqureTypes implement. INTERFACES = { } DEFAULT_CLA...
zy86714-111
util/common.py
Python
asf20
2,820
<html> <head> <style type="text/css"> body { background:#fff; color:#000; font:normal 12px Tahoma, Arial, Helvetica, Serif; margin:0px; padding:0px; } h4 { float:left; height:15px; margin:0px 0 0; pa...
zy86714-111
main/assets/changelog-en.html
HTML
asf20
9,096
/** * Copyright 2010 Mark Wyszomierski * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or ag...
zy86714-111
main/src/com/facebook/android/FacebookWebViewActivity.java
Java
asf20
14,675
/* * Copyright 2010 Facebook, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed ...
zy86714-111
main/src/com/facebook/android/FacebookError.java
Java
asf20
1,304
/* * Copyright 2010 Mark Wyszomierski * Portions Copyright (c) 2008-2010 Facebook, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-...
zy86714-111
main/src/com/facebook/android/Facebook.java
Java
asf20
10,363
/* * Copyright 2010 Mark Wyszomierski * Portions Copyright (c) 2008-2010 Facebook, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-...
zy86714-111
main/src/com/facebook/android/FacebookUtil.java
Java
asf20
7,679
/** * Copyright 2009 Joe LaPenna */ package com.joelapenna.foursquared; import java.util.ArrayList; import java.util.Date; import java.util.HashMap; import java.util.List; import java.util.Map; import android.content.Intent; import android.location.Location; import android.os.Bundle; import android.os.Parcelable; ...
zy86714-111
main/src/com/joelapenna/foursquared/FriendsMapActivity.java
Java
asf20
10,764
/** * Copyright 2010 Mark Wyszomierski */ package com.joelapenna.foursquared; import com.joelapenna.foursquare.error.FoursquareException; import com.joelapenna.foursquared.util.NotificationsUtil; import android.app.Activity; import android.app.ProgressDialog; import android.content.BroadcastReceiver; import androi...
zy86714-111
main/src/com/joelapenna/foursquared/FetchImageForViewIntent.java
Java
asf20
16,224
/** * Copyright 2010 Mark Wyszomierski */ package com.joelapenna.foursquared; import com.google.android.maps.GeoPoint; import com.google.android.maps.MapActivity; import com.google.android.maps.MapController; import com.google.android.maps.MapView; import com.google.android.maps.MyLocationOverlay; import com.google...
zy86714-111
main/src/com/joelapenna/foursquared/NearbyVenuesMapActivity.java
Java
asf20
8,273
/** * Copyright 2009 Joe LaPenna */ package com.joelapenna.foursquared; import com.joelapenna.foursquare.Foursquare; import com.joelapenna.foursquare.error.FoursquareException; import com.joelapenna.foursquare.types.Category; import com.joelapenna.foursquare.types.Group; import com.joelapenna.foursquare.types.Respo...
zy86714-111
main/src/com/joelapenna/foursquared/AddVenueActivity.java
Java
asf20
30,780
/** * Copyright 2010 Mark Wyszomierski */ package com.joelapenna.foursquared; import com.joelapenna.foursquare.Foursquare; import com.joelapenna.foursquare.error.FoursquareException; import com.joelapenna.foursquare.types.Group; import com.joelapenna.foursquare.types.Tip; import com.joelapenna.foursquare.types.Todo...
zy86714-111
main/src/com/joelapenna/foursquared/TodosActivity.java
Java
asf20
21,177
/** * Copyright 2010 Mark Wyszomierski */ package com.joelapenna.foursquared; import com.joelapenna.foursquare.Foursquare; import com.joelapenna.foursquare.types.Group; import com.joelapenna.foursquare.types.User; import com.joelapenna.foursquare.types.Venue; import com.joelapenna.foursquared.app.LoadableListActivi...
zy86714-111
main/src/com/joelapenna/foursquared/UserMayorshipsActivity.java
Java
asf20
10,408
/** * Copyright 2009 Joe LaPenna */ package com.joelapenna.foursquared; import com.joelapenna.foursquare.types.Checkin; import com.joelapenna.foursquare.types.Group; import com.joelapenna.foursquare.types.Mayor; import com.joelapenna.foursquare.types.Stats; import com.joelapenna.foursquare.types.Tip; import com.joe...
zy86714-111
main/src/com/joelapenna/foursquared/VenueActivity.java
Java
asf20
35,457
/** * Copyright 2010 Mark Wyszomierski */ package com.joelapenna.foursquared; import com.joelapenna.foursquare.Foursquare; import com.joelapenna.foursquare.error.FoursquareException; import com.joelapenna.foursquare.types.Group; import com.joelapenna.foursquare.types.Tip; import com.joelapenna.foursquared.app.Loada...
zy86714-111
main/src/com/joelapenna/foursquared/TipsActivity.java
Java
asf20
19,171
/** * Copyright 2009 Joe LaPenna */ package com.joelapenna.foursquared; import com.joelapenna.foursquare.Foursquare; import com.joelapenna.foursquare.error.FoursquareException; import com.joelapenna.foursquared.location.LocationUtils; import com.joelapenna.foursquared.preferences.Preferences; import com.joelapenna....
zy86714-111
main/src/com/joelapenna/foursquared/LoginActivity.java
Java
asf20
8,813
/** * Copyright 2009 Joe LaPenna */ package com.joelapenna.foursquared; import com.joelapenna.foursquare.Foursquare; import com.joelapenna.foursquare.error.FoursquareException; import com.joelapenna.foursquare.types.Group; import com.joelapenna.foursquare.types.Venue; import com.joelapenna.foursquared.error.Locatio...
zy86714-111
main/src/com/joelapenna/foursquared/SearchVenuesActivity.java
Java
asf20
16,934
/** * Copyright 2010 Mark Wyszomierski */ package com.joelapenna.foursquared; import com.joelapenna.foursquare.Foursquare; import com.joelapenna.foursquare.error.FoursquareException; import com.joelapenna.foursquare.types.User; import com.joelapenna.foursquared.location.LocationUtils; import com.joelapenna.foursqua...
zy86714-111
main/src/com/joelapenna/foursquared/UserDetailsActivity.java
Java
asf20
45,842
/** * Copyright 2010 Mark Wyszomierski */ package com.joelapenna.foursquared; import com.joelapenna.foursquare.types.Category; import com.joelapenna.foursquare.types.Group; import com.joelapenna.foursquared.util.RemoteResourceManager; import com.joelapenna.foursquared.widget.CategoryPickerAdapter; import android.a...
zy86714-111
main/src/com/joelapenna/foursquared/CategoryPickerDialog.java
Java
asf20
7,738
/** * Copyright 2010 Mark Wyszomierski */ package com.joelapenna.foursquared; import android.app.Activity; import android.app.ProgressDialog; import android.content.DialogInterface; import android.content.DialogInterface.OnCancelListener; import android.content.Intent; import android.os.AsyncTask; import android.os...
zy86714-111
main/src/com/joelapenna/foursquared/AddTodoActivity.java
Java
asf20
8,752
/** * Copyright 2009 Joe LaPenna */ package com.joelapenna.foursquared.providers; import android.content.SearchRecentSuggestionsProvider; /** * @author Joe LaPenna (joe@joelapenna.com) */ public class VenueQuerySuggestionsProvider extends SearchRecentSuggestionsProvider { public static final String AUTHORIT...
zy86714-111
main/src/com/joelapenna/foursquared/providers/VenueQuerySuggestionsProvider.java
Java
asf20
566
/** * Copyright 2010 Tauno Talimaa */ package com.joelapenna.foursquared.providers; import com.joelapenna.foursquare.Foursquare; import com.joelapenna.foursquare.error.FoursquareError; import com.joelapenna.foursquare.error.FoursquareException; import com.joelapenna.foursquare.types.Group; import com.joelapenna.fou...
zy86714-111
main/src/com/joelapenna/foursquared/providers/GlobalSearchProvider.java
Java
asf20
8,688
/** * Copyright 2009 Joe LaPenna */ package com.joelapenna.foursquared; import com.joelapenna.foursquare.Foursquare; import com.joelapenna.foursquare.error.FoursquareError; import com.joelapenna.foursquare.error.FoursquareException; import com.joelapenna.foursquare.types.User; import com.joelapenna.foursquare.util....
zy86714-111
main/src/com/joelapenna/foursquared/Foursquared.java
Java
asf20
16,225
/** * Copyright 2009 Joe LaPenna */ package com.joelapenna.foursquared; import com.joelapenna.foursquare.types.Group; import com.joelapenna.foursquare.types.Tip; import com.joelapenna.foursquare.types.Todo; import com.joelapenna.foursquare.types.Venue; import com.joelapenna.foursquared.app.LoadableListActivity; imp...
zy86714-111
main/src/com/joelapenna/foursquared/VenueTipsActivity.java
Java
asf20
9,133
/** * Copyright 2010 Mark Wyszomierski */ package com.joelapenna.foursquared; import com.joelapenna.foursquare.Foursquare; import com.joelapenna.foursquare.error.FoursquareException; import com.joelapenna.foursquare.types.Group; import com.joelapenna.foursquare.types.Tip; import com.joelapenna.foursquared.app.Loada...
zy86714-111
main/src/com/joelapenna/foursquared/UserDetailsTipsActivity.java
Java
asf20
20,048
/** * Copyright 2008 Joe LaPenna */ package com.joelapenna.foursquared; import com.joelapenna.foursquare.Foursquare; import com.joelapenna.foursquared.preferences.Preferences; import android.app.Activity; import android.app.AlertDialog; import android.app.Dialog; import android.content.BroadcastReceiver; import an...
zy86714-111
main/src/com/joelapenna/foursquared/PreferenceActivity.java
Java
asf20
8,363
/** * Copyright 2009 Joe LaPenna */ package com.joelapenna.foursquared; import com.google.android.maps.GeoPoint; import com.google.android.maps.MapActivity; import com.google.android.maps.MapController; import com.google.android.maps.MapView; import com.google.android.maps.MyLocationOverlay; import com.google.andro...
zy86714-111
main/src/com/joelapenna/foursquared/SearchVenuesMapActivity.java
Java
asf20
8,920
/** * Copyright 2010 Mark Wyszomierski */ package com.joelapenna.foursquared.util; import android.view.View; import android.widget.TabHost; import android.widget.TabHost.TabSpec; /** * Acts as an interface to the TabSpec class for setting the content view. * The level 3 SDK doesn't support setting a View for the...
zy86714-111
main/src/com/joelapenna/foursquared/util/TabsUtil4.java
Java
asf20
841
/** * Copyright 2009 Joe LaPenna */ package com.joelapenna.foursquared.util; import com.joelapenna.foursquared.FoursquaredSettings; import org.apache.http.Header; import org.apache.http.HttpEntity; import org.apache.http.HttpResponse; import org.apache.http.client.HttpClient; import org.apache.http.client.methods....
zy86714-111
main/src/com/joelapenna/foursquared/util/RemoteResourceFetcher.java
Java
asf20
6,456
/** * Copyright 2010 Mark Wyszomierski */ package com.joelapenna.foursquared.util; import android.text.TextUtils; import com.joelapenna.foursquare.types.FoursquareType; import com.joelapenna.foursquare.types.Tip; import com.joelapenna.foursquare.types.Todo; /** * @date September 2, 2010. * @author Mark Wyszomie...
zy86714-111
main/src/com/joelapenna/foursquared/util/TipUtils.java
Java
asf20
2,077
/** * Copyright 2010 Mark Wyszomierski */ package com.joelapenna.foursquared.util; import android.app.Activity; import android.os.Build; /** * Acts as an interface to the contacts API which has changed between SDK 4 to * 5. * * @date February 14, 2010 * @author Mark Wyszomierski (markww@gmail.com), foursquar...
zy86714-111
main/src/com/joelapenna/foursquared/util/AddressBookUtils.java
Java
asf20
902
// Copyright 2003-2009 Christian d'Heureuse, Inventec Informatik AG, Zurich, Switzerland // www.source-code.biz, www.inventec.ch/chdh // // This module is multi-licensed and may be used under the terms // of any of the following licenses: // // EPL, Eclipse Public License, http://www.eclipse.org/legal // LGPL, GNU Le...
zy86714-111
main/src/com/joelapenna/foursquared/util/Base64Coder.java
Java
asf20
6,665
/** * Copyright 2009 Joe LaPenna */ package com.joelapenna.foursquared.util; import com.joelapenna.foursquared.FoursquaredSettings; import android.os.Environment; import android.util.Log; import java.io.BufferedInputStream; import java.io.BufferedOutputStream; import java.io.File; import java.io.FileInputStream; ...
zy86714-111
main/src/com/joelapenna/foursquared/util/BaseDiskCache.java
Java
asf20
7,683
/** * Copyright 2010 Mark Wyszomierski */ package com.joelapenna.foursquared.util; import com.google.android.maps.GeoPoint; import android.content.Context; import android.location.Location; import android.location.LocationManager; import java.util.List; /** * @date June 30, 2010 * @author Mark Wyszomierski (ma...
zy86714-111
main/src/com/joelapenna/foursquared/util/GeoUtils.java
Java
asf20
1,993
/** * Copyright 2010 Mark Wyszomierski */ package com.joelapenna.foursquared.util; import android.os.Parcel; import android.text.TextUtils; import com.joelapenna.foursquare.types.Group; import com.joelapenna.foursquare.types.Tip; import com.joelapenna.foursquare.types.Todo; import com.joelapenna.foursquare.types.V...
zy86714-111
main/src/com/joelapenna/foursquared/util/VenueUtils.java
Java
asf20
5,574
/** * Copyright 2009 Joe LaPenna */ package com.joelapenna.foursquared.util; import com.joelapenna.foursquared.FoursquaredSettings; import android.net.Uri; import android.util.Log; import java.io.File; import java.io.IOException; import java.io.InputStream; import java.util.Observable; import java.util.Observer; ...
zy86714-111
main/src/com/joelapenna/foursquared/util/RemoteResourceManager.java
Java
asf20
3,347
/** * Copyright 2010 Mark Wyszomierski */ package com.joelapenna.foursquared.util; import com.joelapenna.foursquared.R; import android.content.Context; import android.content.Intent; import android.graphics.drawable.Drawable; import android.os.Build; import android.view.LayoutInflater; import android.view.View; im...
zy86714-111
main/src/com/joelapenna/foursquared/util/TabsUtil.java
Java
asf20
2,428
/** * Copyright 2010 Mark Wyszomierski */ package com.joelapenna.foursquared.util; import android.media.ExifInterface; import android.text.TextUtils; /** * @date July 24, 2010 * @author Mark Wyszomierski (markww@gmail.com) */ public class ExifUtils { private ExifUtils() { } public static int get...
zy86714-111
main/src/com/joelapenna/foursquared/util/ExifUtils.java
Java
asf20
1,279
/** * Copyright 2009 Joe LaPenna */ package com.joelapenna.foursquared.util; import java.io.File; import java.io.FileNotFoundException; import java.io.IOException; import java.io.InputStream; /** * @author Joe LaPenna (joe@joelapenna.com) */ public class NullDiskCache implements DiskCache { /* * (non-J...
zy86714-111
main/src/com/joelapenna/foursquared/util/NullDiskCache.java
Java
asf20
1,637
/** * Copyright 2010 Mark Wyszomierski */ package com.joelapenna.foursquared.util; import android.util.Log; import java.util.Calendar; import java.util.Date; /** * Initializes a few Date objects to act as boundaries for sorting checkin lists * by the following time categories: * * <ul> * <li>Within the la...
zy86714-111
main/src/com/joelapenna/foursquared/util/CheckinTimestampSort.java
Java
asf20
2,310
/** * Copyright 2009 Joe LaPenna */ package com.joelapenna.foursquared.util; import com.joelapenna.foursquare.error.FoursquareCredentialsException; import com.joelapenna.foursquare.error.FoursquareException; import com.joelapenna.foursquared.FoursquaredSettings; import com.joelapenna.foursquared.error.LocationExcep...
zy86714-111
main/src/com/joelapenna/foursquared/util/NotificationsUtil.java
Java
asf20
2,476