This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.shin1ogawa; | |
package com.shin1ogawa; | |
import java.io.BufferedReader; | |
import java.io.IOException; | |
import java.io.InputStreamReader; | |
import java.net.HttpURLConnection; | |
import java.net.URL; | |
import java.security.InvalidKeyException; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package appengine.util; | |
import java.io.UnsupportedEncodingException; | |
import java.net.URLEncoder; | |
import java.security.InvalidKeyException; | |
import java.security.NoSuchAlgorithmException; | |
import java.util.ArrayList; | |
import java.util.Arrays; | |
import java.util.Collections; | |
import java.util.LinkedHashMap; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<plugin> | |
<artifactId>maven-compiler-plugin</artifactId> | |
<configuration> | |
<encoding>utf-8</encoding> | |
<source>1.6</source> | |
<target>1.6</target> | |
<includes> | |
<include>**/model/**</include> | |
<include>**/someutils/**</include> | |
</includes> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.io.*; | |
import java.net.*; | |
import java.util.*; | |
import java.util.logging.*; | |
public class ClientLoginUtil { | |
static final Logger logger = Logger.getLogger(ClientLoginUtil.class.getName()); | |
static final String CLIENTLOGIN_URL = "https://www.google.com/accounts/ClientLogin"; | |
/** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.io.IOException; | |
import java.util.List; | |
import org.apache.commons.io.IOUtils; | |
import org.slim3.controller.Navigation; | |
import org.slim3.controller.SimpleController; | |
import org.slim3.datastore.Datastore; | |
import com.shin1ogawa.meta.Slim3ModelMeta; | |
import com.shin1ogawa.model.Slim3Model; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.List; | |
import org.junit.Test; | |
import org.slim3.datastore.Datastore; | |
import org.slim3.tester.AppEngineTestCase; | |
import com.google.appengine.api.datastore.Entity; | |
import com.google.appengine.api.datastore.Key; | |
import static com.google.appengine.api.datastore.Query.FilterOperator.*; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package org.sorausagi.lingr; | |
import java.io.IOException; | |
import org.junit.Test; | |
import org.sorausagi.lingr.LingrUtil.LingrSession; | |
public class LingrTest { | |
private static final String USER = ""; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.lang.reflect.Method; | |
import org.slim3.tester.AppEngineTester; | |
import org.slim3.util.AppEngineUtil; | |
import com.google.apphosting.api.ApiProxy; | |
public class CustomizedAppEngineTester extends AppEngineTester { | |
@Override |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.io.IOException; | |
import java.io.PrintWriter; | |
import java.util.Iterator; | |
import java.util.Map; | |
import java.util.Map.Entry; | |
import java.util.logging.Logger; | |
import javax.servlet.Filter; | |
import javax.servlet.FilterChain; | |
import javax.servlet.FilterConfig; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.concurrent.Future; | |
import java.util.logging.Level; | |
import java.util.logging.Logger; | |
import org.apache.commons.lang.StringUtils; | |
import com.google.appengine.api.urlfetch.URLFetchServicePb.URLFetchRequest; | |
import com.google.appengine.repackaged.com.google.protobuf.InvalidProtocolBufferException; | |
import com.google.apphosting.api.ApiProxy; | |
import com.google.apphosting.api.ApiProxy.ApiConfig; |