code
stringlengths
3
1.18M
language
stringclasses
1 value
package main.activities; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import main.db.entities.FavoriteAdvert; import main.db.entities.dao.FavoriteAdvertDAO; import model.advertisers.Advertiser; import model.advertisers.Leboncoin; import model.advertisers.Vivastreet; import model.domain...
Java
package main.db.entities; public class FavoriteAdvert { private int id; private String advertName; private String advertUrl; public FavoriteAdvert(){} public FavoriteAdvert(String advertNameString, String advertUrlString){ this.advertUrl = advertUrlString; this.advertName=advertNameString...
Java
package main.helper; import main.db.entities.dao.FavoriteAdvertDAO; import android.content.Context; import android.database.sqlite.SQLiteDatabase; import android.database.sqlite.SQLiteDatabase.CursorFactory; import android.database.sqlite.SQLiteOpenHelper; public class SqlHelper extends SQLiteOpenHelper { ...
Java
/** Automatically generated file. DO NOT MODIFY */ package main.activities; public final class BuildConfig { public final static boolean DEBUG = true; }
Java
/* * This file is part of AXS, Annotation-XPath for SAX. * * Copyright (c) 2013 Benjamin K. Stuhl * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including wit...
Java
/* * This file is part of AXS, Annotation-XPath for SAX. * * Copyright (c) 2013 Benjamin K. Stuhl * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including wit...
Java
/* * This file is part of AXS, Annotation-XPath for SAX. * * Copyright (c) 2013 Benjamin K. Stuhl * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including wit...
Java
/* * This file is part of AXS, Annotation-XPath for SAX. * * Copyright (c) 2013 Benjamin K. Stuhl * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including wit...
Java
/* * This file is part of AXS, Annotation-XPath for SAX. * * Copyright (c) 2013 Benjamin K. Stuhl * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including wit...
Java
/* * This file is part of AXS, Annotation-XPath for SAX. * * Copyright (c) 2013 Benjamin K. Stuhl * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including wit...
Java
/* * This file is part of AXS, Annotation-XPath for SAX. * * Copyright (c) 2013 Benjamin K. Stuhl * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including wit...
Java
/* * This file is part of AXS, Annotation-XPath for SAX. * * Copyright (c) 2013 Benjamin K. Stuhl * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including wit...
Java
/* * This file is part of AXS, Annotation-XPath for SAX. * * Copyright (c) 2013 Benjamin K. Stuhl * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including wit...
Java
/* * This file is part of AXS, Annotation-XPath for SAX. * * Copyright (c) 2013 Benjamin K. Stuhl * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including wit...
Java
/* * This file is part of AXS, Annotation-XPath for SAX. * * Copyright (c) 2013 Benjamin K. Stuhl * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including wit...
Java
/* * This file is part of AXS, Annotation-XPath for SAX. * * Copyright (c) 2013 Benjamin K. Stuhl * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including wit...
Java
/* * This file is part of AXS, Annotation-XPath for SAX. * * Copyright (c) 2013 Benjamin K. Stuhl * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including wit...
Java
/* * This file is part of AXS, Annotation-XPath for SAX. * * Copyright (c) 2013 Benjamin K. Stuhl * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including wit...
Java
/* * This file is part of AXS, Annotation-XPath for SAX. * * Copyright (c) 2013 Benjamin K. Stuhl * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including wit...
Java
/* * This file is part of AXS, Annotation-XPath for SAX. * * Copyright (c) 2013 Benjamin K. Stuhl * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including wit...
Java
/* * This file is part of AXS, Annotation-XPath for SAX. * * Copyright (c) 2013 Benjamin K. Stuhl * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including wit...
Java
/* * This file is part of AXS, Annotation-XPath for SAX. * * Copyright (c) 2013 Benjamin K. Stuhl * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including wit...
Java
/* * This file is part of AXS, Annotation-XPath for SAX. * * Copyright (c) 2013 Benjamin K. Stuhl * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including wit...
Java
/* * This file is part of AXS, Annotation-XPath for SAX. * * Copyright (c) 2013 Benjamin K. Stuhl * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including wit...
Java
package com.clwillingham.socket.io; import org.json.JSONObject; public interface MessageCallback { public void on(String event, JSONObject... data); public void onMessage(String message); public void onMessage(JSONObject json); public void onConnect(); public void onDisconnect(); }
Java
package com.clwillingham.socket.io; public class Message extends IOMessage{ public Message(String message){ super(IOMessage.MESSAGE, -1, "", message); } }
Java
// MODIFIED TO REDUCE LOGGING package com.clwillingham.socket.io; public class IOMessage { public static final int DISCONNECT = 0; public static final int CONNECT = 1; public static final int HEARTBEAT = 2; public static final int MESSAGE = 3; public static final int JSONMSG = 4; public static final int EVENT = ...
Java
// MODIFIED TO REDUCE LOGGING package com.clwillingham.socket.io; import java.io.IOException; import java.net.URI; import org.json.JSONArray; import org.json.JSONException; import org.json.JSONObject; import net.tootallnate.websocket.WebSocketClient; public class IOWebSocket extends WebSocketClient{ private Mess...
Java
// MODIFIED TO USE END POINTS IN OUTGOING MESSAGES // MODIFIED TO REDUCE LOGGING package com.clwillingham.socket.io; import java.io.IOException; import java.io.InputStream; import java.net.URI; import java.net.URL; import java.util.Scanner; import org.json.JSONArray; import org.json.JSONException; import org.json.JSO...
Java
package wasd; import grits.wasd.R; import java.io.IOException; import org.apache.http.client.HttpClient; import org.apache.http.client.HttpResponseException; import org.apache.http.client.ResponseHandler; import org.apache.http.client.methods.HttpGet; import org.apache.http.client.methods.HttpPost; import org.apache...
Java
package net.tootallnate.websocket; import java.io.IOException; import java.security.NoSuchAlgorithmException; /** * Implemented by <tt>WebSocketClient</tt> and <tt>WebSocketServer</tt>. * The methods within are called by <tt>WebSocket</tt>. * @author Nathan Rajlich */ interface WebSocketListener { /** * C...
Java
package net.tootallnate.websocket; import java.io.IOException; import java.nio.ByteBuffer; import java.nio.channels.SelectionKey; import java.nio.channels.Selector; import java.nio.channels.ServerSocketChannel; import java.nio.channels.SocketChannel; import java.security.MessageDigest; import java.security.NoSuchAlgor...
Java
package net.tootallnate.websocket; import java.io.IOException; import java.net.InetSocketAddress; import java.net.URI; import java.nio.ByteBuffer; import java.nio.channels.SelectionKey; import java.nio.channels.Selector; import java.nio.channels.SocketChannel; import java.security.MessageDigest; import java.security.N...
Java
package net.tootallnate.websocket; /** * Enum for WebSocket Draft */ public enum WebSocketDraft { AUTO, DRAFT75, DRAFT76 }
Java
package net.tootallnate.websocket; import java.io.IOException; import java.io.UnsupportedEncodingException; import java.nio.ByteBuffer; import java.nio.channels.NotYetConnectedException; import java.nio.channels.SocketChannel; import java.security.NoSuchAlgorithmException; import java.util.concurrent.BlockingQueue; /...
Java
/* NFCard is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. NFCard is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY...
Java
/* NFCard is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. NFCard is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY...
Java
/* NFCard is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. NFCard is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY...
Java
/* NFCard is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. NFCard is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY...
Java
/* NFCard is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. NFCard is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY...
Java
/* NFCard is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. NFCard is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY...
Java
/* NFCard is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. NFCard is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY...
Java
/* NFCard is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. NFCard is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY...
Java
/* NFCard is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. NFCard is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY...
Java
/* NFCard is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. NFCard is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY...
Java
/* NFCard is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. NFCard is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY...
Java
/* NFCard is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. NFCard is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY...
Java
/* NFCard is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. NFCard is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY...
Java
/* NFCard is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. NFCard is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY...
Java
/* NFCard is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. NFCard is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY...
Java
/* NFCard is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. NFCard is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY...
Java
/* NFCard is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. NFCard is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY...
Java
/* NFCard is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. NFCard is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY...
Java
/* NFCard is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. NFCard is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY...
Java
/* NFCard is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. NFCard is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY...
Java
/* NFCard is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. NFCard is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY...
Java
/* NFCard is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. NFCard is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY...
Java
/* NFCard is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. NFCard is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY...
Java
/* NFCard is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. NFCard is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY...
Java
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package com.mycompany.biblio.model; import java.io.Serializable; import javax.persistence.*; /** * * @author Haythem & Seif */ @Entity @NamedQueries({ @NamedQuery(name = Annonce.FIND_ALL, query = ...
Java
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package com.mycompany.biblio.model; import java.io.Serializable; import java.util.*; import javax.persistence.*; /** * * @author Haythem & Seif.. */ @Entity @NamedQueries({ @NamedQuery(name = Utilisa...
Java
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package com.mycompany.biblio.model; import java.io.Serializable; import java.util.*; import javax.persistence.*; /** * * @author Haythem & Seif */ @Entity @NamedQueries({ @NamedQuery(name = Categ...
Java
package com.mycompany.biblio.business; import com.mycompany.biblio.model.Annonce; import java.util.List; import javax.ejb.Stateless; import javax.persistence.*; /** * * @author sifo */ @Stateless public class AnnonceEJB { // ====================================== // = Att...
Java
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package com.mycompany.biblio.business; import com.mycompany.biblio.model.Annonce; import com.mycompany.biblio.model.Utilisateur; import java.util.List; import javax.ejb.Stateless; import javax.persistence.En...
Java
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package com.mycompany.biblio.controller; import com.mycompany.biblio.business.UtilisateurEJB; import com.mycompany.biblio.model.Utilisateur; import java.util.Iterator; import java.util.List; import javax.ejb...
Java
package com.mycompany.biblio.controller; import com.mycompany.biblio.business.AnnonceEJB; import com.mycompany.biblio.business.UtilisateurEJB; import com.mycompany.biblio.model.Annonce; import com.mycompany.biblio.model.Utilisateur; import java.util.ArrayList; import java.util.List; import javax.ejb.EJB; ...
Java
package com.turbomanage.httpclient; /** * An HTTP DELETE request. * * @author David M. Chandler */ public class HttpDelete extends HttpRequest { /** * Constructs an HTTP DELETE request. * * @param path Partial URL * @param params Name-value pairs to be appended to the URL */ pub...
Java
/** * Minimal HTTP client wrapping {@link java.net.HttpURLConnection}. * The base class for all implementations is {@link com.turbomanage.httpclient.AbstractHttpClient}. * You can make asynchronous calls using {@link com.turbomanage.httpclient.AsyncHttpClient}. * * <p>To get started, see {@link com.turbomanage.ht...
Java
package com.turbomanage.httpclient; /** * Callback passed to an {@link AsyncRequestExecutor} so that the * calling code can be notified when a request is complete or * has thrown an exception. * * @author David M. Chandler */ public abstract class AsyncCallback { /** * Called when response is availabl...
Java
package com.turbomanage.httpclient; import java.io.IOException; import java.net.HttpURLConnection; import java.util.List; import java.util.Map; /** * Default {@link RequestLogger} used by {@link BasicHttpClient}. In recent * versions of Android, log() gets directed to LogCat so this can * work for Android, too. ...
Java
/** * Minimal HTTP client for Android wrapping {@link java.net.HttpURLConnection}. * * Main class is {@link com.turbomanage.httpclient.android.AndroidHttpClient}. */ package com.turbomanage.httpclient.android;
Java
package com.turbomanage.httpclient.android; import android.os.AsyncTask; import android.os.Build; import com.turbomanage.httpclient.AsyncHttpClient; import com.turbomanage.httpclient.RequestHandler; import com.turbomanage.httpclient.RequestLogger; import java.net.HttpURLConnection; /** * HTTP client for Android pr...
Java
package com.turbomanage.httpclient.android; import android.os.AsyncTask; import com.turbomanage.httpclient.AsyncCallback; import com.turbomanage.httpclient.AsyncHttpClient; import com.turbomanage.httpclient.AsyncRequestExecutor; import com.turbomanage.httpclient.AsyncRequestExecutorFactory; /** * Android-specific f...
Java
package com.turbomanage.httpclient.android; import android.os.AsyncTask; import com.turbomanage.httpclient.AsyncCallback; import com.turbomanage.httpclient.AsyncHttpClient; import com.turbomanage.httpclient.AsyncRequestExecutor; import com.turbomanage.httpclient.HttpRequest; import com.turbomanage.httpclient.HttpRes...
Java
package com.turbomanage.httpclient; /** * Minimal HTTP client that facilitates simple GET, POST, PUT, and DELETE * requests. To implement buffering, streaming, or set other request properties, * set an alternate {@link RequestHandler}. * * <p>Sample usage:</p> * <pre> * BasicHttpClient httpClient = new Bas...
Java
package com.turbomanage.httpclient; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; import java.net.ConnectException; import java.net.HttpURLConnection; import java.net.SocketTimeoutException; /** * Interface that defines the request lifecycle used by {@link AbstractHttpClient}....
Java
package com.turbomanage.httpclient; /** * An HTTP GET request. * * @author David M. Chandler */ public class HttpGet extends HttpRequest { /** * Constructs an HTTP GET request. * * @param path Partial URL * @param params Name-value pairs to be appended to the URL */ public HttpG...
Java
package com.turbomanage.httpclient; /** * An HTTP POST request. * * @author David M. Chandler */ public class HttpPost extends HttpRequest { /** * Constructs an HTTP POST request with name-value pairs to * be sent in the request BODY. * * @param path Partial URL * @param params Name...
Java
package com.turbomanage.httpclient; import java.io.IOException; import java.net.HttpURLConnection; /** * HTTP request logger used by {@link BasicHttpClient}. * * @author David M. Chandler */ public interface RequestLogger { /** * Determine whether requests should be logged. * * @return ...
Java
package com.turbomanage.httpclient; /** * Factory that provides an async wrapper for a request, that is, something * that can execute a request asynchronously. * * @author David M. Chandler */ public interface AsyncRequestExecutorFactory { AsyncRequestExecutor getAsyncRequestExecutor(AsyncHttpClient client...
Java
package com.turbomanage.httpclient; /** * An HTTP PUT request. * * @author David M. Chandler */ public class HttpPut extends HttpRequest { /** * Constructs an HTTP PUT request with name-value pairs to * be sent in the request BODY. * * @param path Partial URL * @param params Name-va...
Java
package com.turbomanage.httpclient; /** * An HTTP HEAD request. * * @author David M. Chandler */ public class HttpHead extends HttpRequest { /** * Constructs an HTTP HEAD request. * * @param path Partial URL * @param params Name-value pairs to be appended to the URL */ public Ht...
Java
package com.turbomanage.httpclient; import com.turbomanage.httpclient.android.DoHttpRequestTask; /** * An HTTP client that completes all requests asynchronously using * {@link DoHttpRequestTask}. All methods take a callback argument which is * passed to the task and whose methods are invoked when the request comp...
Java
package com.turbomanage.httpclient; import java.io.UnsupportedEncodingException; import java.net.URLEncoder; import java.util.Collection; import java.util.HashMap; import java.util.Map; import java.util.Set; /** * Parameter map knows offers convenience methods for chaining add()s * as well as URL encoding. * * ...
Java
package com.turbomanage.httpclient; /** * Enumerated type that represents an HTTP request method. * Besides the method name, it determines whether the client * should do the output phase of the connection. * * @author David M. Chandler */ public enum HttpMethod { GET(true, false), POST(true, true), ...
Java
package com.turbomanage.httpclient; import java.io.ByteArrayOutputStream; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; import java.net.HttpURLConnection; import java.net.URL; /** * Default {@link RequestHandler} used by {@link BasicHttpClient}. It is * intended to be used fo...
Java
package com.turbomanage.httpclient; import java.io.IOException; import java.net.HttpURLConnection; import java.util.List; import java.util.Map; /** * Minimal representation of the raw HTTP response copied from {@link HttpURLConnection}. * * @author David M. Chandler */ public class HttpResponse { priva...
Java
package com.turbomanage.httpclient; /** * Describes a class that can execute a request asynchronously. These are * produced by a {@link AsyncRequestExecutorFactory}. * * @author David M. Chandler */ public interface AsyncRequestExecutor { void execute(HttpRequest httpRequest); }
Java
package com.turbomanage.httpclient; /** * Custom exception class that holds an {@link HttpResponse}. * This allows upstream code to receive an HTTP status code and * any content received as well as the underlying exception. * * @author David M. Chandler */ public class HttpRequestException extends Exception { ...
Java
package com.turbomanage.httpclient; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; import java.net.CookieHandler; import java.net.CookieManager; import java.net.HttpURLConnection; import java.net.MalformedURLException; import java.net.URL; import java.util.Map; import java.util.T...
Java
package com.turbomanage.httpclient; /** * Holds data for an HTTP request to be made with the attached HTTP client. * * @author David M. Chandler */ public abstract class HttpRequest { public static final String URLENCODED = "application/x-www-form-urlencoded;charset=UTF-8"; public static final String...
Java
package com.xyz.jira.plugin.responses; import java.util.ArrayList; import java.util.Collection; import javax.xml.bind.annotation.*; import com.atlassian.jira.issue.issuetype.IssueType; /** * A message returned from the {@link IssueTypes} */ @XmlRootElement(name = "issueTypes") @XmlAccessorType(XmlAcc...
Java
package com.xyz.jira.plugin.responses; import javax.xml.bind.annotation.*; /** * A message returned from the {@link MessageResource} */ @XmlRootElement(name = "message") @XmlAccessorType(XmlAccessType.FIELD) public class Message { @XmlAttribute private String key; @XmlElement(name = "value...
Java
package com.xyz.jira.plugin.responses; import javax.xml.bind.annotation.*; /** * A message returned from the {@link MessageResource} */ @XmlRootElement(name = "project") @XmlAccessorType(XmlAccessType.FIELD) public class ProjectInfo { @XmlAttribute private String pid; @XmlElement(name ...
Java
package com.xyz.jira.plugin.responses; import javax.xml.bind.annotation.*; /** * A message returned from the {@link CreateAnonIssue} */ @XmlRootElement(name = "issueCreated") @XmlAccessorType(XmlAccessType.FIELD) public class IssueCreated { @XmlAttribute(name="pid") private String projectId; ...
Java
package com.xyz.jira.plugin; import com.atlassian.jira.ComponentManager; import com.atlassian.jira.project.Project; import com.atlassian.plugins.rest.common.security.AnonymousAllowed; import com.xyz.jira.plugin.responses.IssueTypesInfo; import com.xyz.jira.plugin.responses.ProjectInfo; import javax.ws.rs.*; ...
Java
package com.xyz.jira.plugin; import java.sql.Timestamp; import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.Date; import java.util.HashMap; import java.util.Map; import com.atlassian.core.user.UserUtils; import com.atlassian.jira.ComponentManager; import com.atlassian.jira.config.Cons...
Java
package com.xyz.jira.plugin; import java.io.File; import java.util.Iterator; import java.util.List; import com.atlassian.jira.ComponentManager; import com.atlassian.jira.bc.issue.IssueService; import com.atlassian.jira.issue.AttachmentManager; import com.atlassian.jira.issue.MutableIssue; import com.atlassian.jira.is...
Java
package com.xyz.jira.plugin; import com.atlassian.jira.ComponentManager; import com.atlassian.jira.project.Project; import com.atlassian.plugins.rest.common.security.AnonymousAllowed; import com.xyz.jira.plugin.responses.IssueTypesInfo; import javax.ws.rs.*; import javax.ws.rs.core.MediaType; import javax.ws.rs.core....
Java
package com.xyz.jira.plugin.responses; import java.util.ArrayList; import java.util.Collection; import javax.xml.bind.annotation.*; import com.atlassian.jira.issue.issuetype.IssueType; /** * A message returned from the {@link IssueTypes} */ @XmlRootElement(name = "issueTypes") @XmlAccessorType(XmlAcc...
Java