code
stringlengths
1
2.01M
repo_name
stringlengths
3
62
path
stringlengths
1
267
language
stringclasses
231 values
license
stringclasses
13 values
size
int64
1
2.01M
/* * Copyright (C) 2010 Teleal GmbH, Switzerland * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as * published by the Free Software Foundation, either version 3 of * the License, or (at your option) any later version. * * Th...
zzh84615-mycode
src/org/teleal/cling/support/model/item/Movie.java
Java
asf20
3,562
/* * Copyright (C) 2010 Teleal GmbH, Switzerland * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as * published by the Free Software Foundation, either version 3 of * the License, or (at your option) any later version. * * Th...
zzh84615-mycode
src/org/teleal/cling/support/model/item/Item.java
Java
asf20
3,088
/* * Copyright (C) 2010 Teleal GmbH, Switzerland * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as * published by the Free Software Foundation, either version 3 of * the License, or (at your option) any later version. * * Th...
zzh84615-mycode
src/org/teleal/cling/support/model/item/AudioBroadcast.java
Java
asf20
2,683
/* * Copyright (C) 2010 Teleal GmbH, Switzerland * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as * published by the Free Software Foundation, either version 3 of * the License, or (at your option) any later version. * * Th...
zzh84615-mycode
src/org/teleal/cling/support/model/item/VideoItem.java
Java
asf20
5,849
/* * Copyright (C) 2010 Teleal GmbH, Switzerland * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as * published by the Free Software Foundation, either version 3 of * the License, or (at your option) any later version. * * Th...
zzh84615-mycode
src/org/teleal/cling/support/model/item/AudioItem.java
Java
asf20
4,539
/* * Copyright (C) 2010 Teleal GmbH, Switzerland * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as * published by the Free Software Foundation, either version 3 of * the License, or (at your option) any later version. * * Th...
zzh84615-mycode
src/org/teleal/cling/support/model/item/PlaylistItem.java
Java
asf20
4,246
/* * Copyright (C) 2010 Teleal GmbH, Switzerland * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as * published by the Free Software Foundation, either version 3 of * the License, or (at your option) any later version. * * Th...
zzh84615-mycode
src/org/teleal/cling/support/model/item/MusicTrack.java
Java
asf20
5,050
/* * Copyright (C) 2010 Teleal GmbH, Switzerland * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as * published by the Free Software Foundation, either version 3 of * the License, or (at your option) any later version. * * Th...
zzh84615-mycode
src/org/teleal/cling/support/model/item/VideoBroadcast.java
Java
asf20
2,335
package com.wireme.player; import java.io.IOException; import javax.crypto.NullCipher; import com.wireme.R; import android.app.Activity; import android.content.Intent; import android.media.MediaPlayer; import android.media.MediaPlayer.OnCompletionListener; import android.media.MediaPlayer.OnErrorListener; import an...
zzh84615-mycode
src/com/wireme/player/GPlayer.java
Java
asf20
7,675
/* * Copyright (C) 2008 The Android Open Source Project * * 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 app...
zzh84615-mycode
src/com/wireme/util/FixedAndroidHandler.java
Java
asf20
5,353
package com.wireme.mediaserver; import java.io.IOException; import java.net.InetAddress; import java.net.NetworkInterface; import java.net.ServerSocket; import java.net.Socket; import java.net.SocketException; import java.net.UnknownHostException; import java.util.Enumeration; import org.teleal.cling.binding.annotati...
zzh84615-mycode
src/com/wireme/mediaserver/MediaServer.java
Java
asf20
2,742
package com.wireme.mediaserver; import org.teleal.cling.support.model.container.Container; import org.teleal.cling.support.model.item.Item; public class ContentNode { private Container container; private Item item; private String id; private String fullPath; private boolean isItem; public ContentNode(S...
zzh84615-mycode
src/com/wireme/mediaserver/ContentNode.java
Java
asf20
946
package com.wireme.mediaserver; import java.util.HashMap; import org.teleal.cling.support.model.WriteStatus; import org.teleal.cling.support.model.container.Container; public class ContentTree { public final static String ROOT_ID = "0"; public final static String VIDEO_ID = "1"; public final static String AUDIO...
zzh84615-mycode
src/com/wireme/mediaserver/ContentTree.java
Java
asf20
1,615
package com.wireme.mediaserver; import java.io.BufferedReader; import java.io.ByteArrayInputStream; import java.io.File; import java.io.FileInputStream; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; import java.io.OutputStream; import java.io.PrintWriter; import java.net.Ser...
zzh84615-mycode
src/com/wireme/mediaserver/HttpServer.java
Java
asf20
29,704
package com.wireme.mediaserver; import org.teleal.cling.support.contentdirectory.AbstractContentDirectoryService; import org.teleal.cling.support.contentdirectory.ContentDirectoryErrorCode; import org.teleal.cling.support.contentdirectory.ContentDirectoryException; import org.teleal.cling.support.contentdirectory.DIDL...
zzh84615-mycode
src/com/wireme/mediaserver/ContentDirectoryService.java
Java
asf20
2,858
package com.wireme.activity; import org.teleal.cling.model.meta.Device; import org.teleal.cling.model.meta.Service; import org.teleal.cling.support.model.DIDLObject; import org.teleal.cling.support.model.container.Container; import org.teleal.cling.support.model.item.Item; public class ContentItem { private Device d...
zzh84615-mycode
src/com/wireme/activity/ContentItem.java
Java
asf20
1,630
package com.wireme.activity; import android.net.wifi.WifiManager; import org.teleal.cling.android.AndroidUpnpServiceConfiguration; import org.teleal.cling.android.AndroidUpnpServiceImpl; public class WireUpnpService extends AndroidUpnpServiceImpl { @Override protected AndroidUpnpServiceConfiguration createConfigura...
zzh84615-mycode
src/com/wireme/activity/WireUpnpService.java
Java
asf20
807
/* * Copyright (C) 2010 Teleal GmbH, Switzerland * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as * published by the Free Software Foundation, either version 3 of * the License, or (at your option) any later version. * * Th...
zzh84615-mycode
src/com/wireme/activity/DeviceItem.java
Java
asf20
2,445
package com.wireme.activity; import java.net.InetAddress; import java.net.UnknownHostException; import java.util.logging.Level; import java.util.logging.Logger; import org.teleal.cling.android.AndroidUpnpService; import org.teleal.cling.model.meta.Device; import org.teleal.cling.model.meta.LocalDevice; import org.tel...
zzh84615-mycode
src/com/wireme/activity/MainActivity.java
Java
asf20
19,855
package org.springframework.samples.jpetstore.web.struts; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.apache.struts.action.ActionForm; import org.apache.struts.action.ActionForward; import org.apache.struts.action.ActionMapping; public class ViewCa...
zzh-simple-hr
Zjpetstore/src/org/springframework/samples/jpetstore/web/struts/ViewCartAction.java
Java
art
1,221
package org.springframework.samples.jpetstore.web.struts; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.apache.struts.action.ActionForm; import org.apache.struts.action.ActionForward; import org.apache.struts.action.ActionMapping; import org.springfr...
zzh-simple-hr
Zjpetstore/src/org/springframework/samples/jpetstore/web/struts/NewOrderFormAction.java
Java
art
1,309
package org.springframework.samples.jpetstore.web.struts; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.apache.struts.action.ActionForm; import org.apache.struts.action.ActionForward; import org.apache.struts.action.ActionMapping; public class Remove...
zzh-simple-hr
Zjpetstore/src/org/springframework/samples/jpetstore/web/struts/RemoveItemFromCartAction.java
Java
art
687
package org.springframework.samples.jpetstore.web.struts; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.apache.struts.action.ActionForm; import org.apache.struts.action.ActionForward; import org.apache.struts.action.ActionMapping; import org.springfr...
zzh-simple-hr
Zjpetstore/src/org/springframework/samples/jpetstore/web/struts/AddItemToCartAction.java
Java
art
1,301
package org.springframework.samples.jpetstore.web.struts; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.apache.struts.action.ActionForm; import org.apache.struts.action.ActionForward; import org.apache.struts.action.ActionMapping; import org.springfr...
zzh-simple-hr
Zjpetstore/src/org/springframework/samples/jpetstore/web/struts/NewAccountFormAction.java
Java
art
1,072
package org.springframework.samples.jpetstore.web.struts; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.apache.struts.action.ActionForm; import org.apache.struts.action.ActionForward; import org.apache.struts.action.ActionMapping; import org.springfr...
zzh-simple-hr
Zjpetstore/src/org/springframework/samples/jpetstore/web/struts/EditAccountAction.java
Java
art
1,680
package org.springframework.samples.jpetstore.web.struts; import javax.servlet.ServletContext; import org.apache.struts.action.Action; import org.apache.struts.action.ActionServlet; import org.springframework.samples.jpetstore.domain.logic.PetStoreFacade; import org.springframework.web.context.WebApplication...
zzh-simple-hr
Zjpetstore/src/org/springframework/samples/jpetstore/web/struts/BaseAction.java
Java
art
1,644
package org.springframework.samples.jpetstore.web.struts; import javax.servlet.http.HttpServletRequest; import org.apache.struts.action.ActionMapping; import org.springframework.samples.jpetstore.domain.Cart; public class CartActionForm extends BaseActionForm { /* Private Fields */ private Cart ca...
zzh-simple-hr
Zjpetstore/src/org/springframework/samples/jpetstore/web/struts/CartActionForm.java
Java
art
834
package org.springframework.samples.jpetstore.web.struts; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.apache.struts.action.ActionForm; import org.apache.struts.action.ActionForward; import org.apache.struts.action.ActionMapping; import org.springfr...
zzh-simple-hr
Zjpetstore/src/org/springframework/samples/jpetstore/web/struts/NewOrderAction.java
Java
art
1,436
package org.springframework.samples.jpetstore.web.struts; import java.util.ArrayList; import java.util.List; import javax.servlet.http.HttpServletRequest; import org.apache.struts.action.ActionMapping; import org.springframework.samples.jpetstore.domain.Order; public class OrderActionForm extends BaseAc...
zzh-simple-hr
Zjpetstore/src/org/springframework/samples/jpetstore/web/struts/OrderActionForm.java
Java
art
4,008
package org.springframework.samples.jpetstore.web.struts; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.apache.struts.action.ActionForm; import org.apache.struts.action.ActionForward; import org.apache.struts.action.ActionMapping; import org.springfr...
zzh-simple-hr
Zjpetstore/src/org/springframework/samples/jpetstore/web/struts/ViewOrderAction.java
Java
art
1,083
package org.springframework.samples.jpetstore.web.struts; import java.util.ArrayList; import java.util.List; import javax.servlet.http.HttpServletRequest; import org.apache.struts.action.ActionError; import org.apache.struts.action.ActionErrors; import org.apache.struts.action.ActionForm; import org.apache...
zzh-simple-hr
Zjpetstore/src/org/springframework/samples/jpetstore/web/struts/BaseActionForm.java
Java
art
1,206
package org.springframework.samples.jpetstore.web.struts; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.apache.struts.action.ActionForm; import org.apache.struts.action.ActionForward; import org.apache.struts.action.ActionMapping; public class ListOr...
zzh-simple-hr
Zjpetstore/src/org/springframework/samples/jpetstore/web/struts/ListOrdersAction.java
Java
art
774
package org.springframework.samples.jpetstore.web.struts; import java.util.List; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.apache.struts.action.ActionForm; import org.apache.struts.action.ActionForward; import org.apache.struts.action.ActionMappi...
zzh-simple-hr
Zjpetstore/src/org/springframework/samples/jpetstore/web/struts/EditAccountFormAction.java
Java
art
1,223
package org.springframework.samples.jpetstore.web.struts; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.apache.struts.action.ActionForm; import org.apache.struts.action.ActionForward; import org.apache.struts.action.ActionMapping; import org.springfr...
zzh-simple-hr
Zjpetstore/src/org/springframework/samples/jpetstore/web/struts/ViewItemAction.java
Java
art
816
package org.springframework.samples.jpetstore.web.struts; import java.util.Iterator; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.apache.struts.action.ActionForm; import org.apache.struts.action.ActionForward; import org.apache.struts.action.ActionM...
zzh-simple-hr
Zjpetstore/src/org/springframework/samples/jpetstore/web/struts/UpdateCartQuantitiesAction.java
Java
art
1,242
package org.springframework.samples.jpetstore.web.struts; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.apache.struts.action.ActionForm; import org.apache.struts.action.ActionForward; import org.apache.struts.action.ActionMapping; public class DoNoth...
zzh-simple-hr
Zjpetstore/src/org/springframework/samples/jpetstore/web/struts/DoNothingAction.java
Java
art
581
package org.springframework.samples.jpetstore.web.struts; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.apache.struts.action.ActionForm; import org.apache.struts.action.ActionForward; import org.apache.struts.action.ActionMapping; import org.springfr...
zzh-simple-hr
Zjpetstore/src/org/springframework/samples/jpetstore/web/struts/ViewCategoryAction.java
Java
art
1,953
package org.springframework.samples.jpetstore.web.struts; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.apache.struts.action.ActionForm; import org.apache.struts.action.ActionForward; import org.apache.struts.action.ActionMapping; import org.springfr...
zzh-simple-hr
Zjpetstore/src/org/springframework/samples/jpetstore/web/struts/ViewProductAction.java
Java
art
1,752
package org.springframework.samples.jpetstore.web.struts; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.apache.struts.action.ActionForm; import org.apache.struts.action.ActionForward; import org.apache.struts.action.ActionMapping; import org.springfr...
zzh-simple-hr
Zjpetstore/src/org/springframework/samples/jpetstore/web/struts/SearchProductsAction.java
Java
art
1,850
package org.springframework.samples.jpetstore.web.struts; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.apache.struts.action.ActionForm; import org.apache.struts.action.ActionForward; import org.apache.struts.action.ActionMapping; import org.springfr...
zzh-simple-hr
Zjpetstore/src/org/springframework/samples/jpetstore/web/struts/SignonAction.java
Java
art
2,105
package org.springframework.samples.jpetstore.web.struts; import java.util.ArrayList; import java.util.List; import javax.servlet.http.HttpServletRequest; import org.apache.struts.action.ActionMapping; import org.springframework.beans.support.PagedListHolder; import org.springframework.samples.jpetstore.d...
zzh-simple-hr
Zjpetstore/src/org/springframework/samples/jpetstore/web/struts/AccountActionForm.java
Java
art
4,373
package org.springframework.samples.jpetstore.web.struts; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.apache.struts.action.ActionForm; import org.apache.struts.action.ActionForward; import org.apache.struts.action.ActionMapping; import org.springfr...
zzh-simple-hr
Zjpetstore/src/org/springframework/samples/jpetstore/web/struts/NewAccountAction.java
Java
art
1,713
package org.springframework.samples.jpetstore.web.struts; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.apache.struts.action.ActionForm; import org.apache.struts.action.ActionForward; import org.apache.struts.action.ActionMapping; public abstract cla...
zzh-simple-hr
Zjpetstore/src/org/springframework/samples/jpetstore/web/struts/SecureBaseAction.java
Java
art
1,266
package org.springframework.samples.jpetstore.web.spring; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.springframework.beans.support.PagedListHolder; import org.springframework.samples.jpetstore.domain.Account; import org.springframework.samples.jpetst...
zzh-simple-hr
Zjpetstore/src/org/springframework/samples/jpetstore/web/spring/SignonController.java
Java
art
1,682
package org.springframework.samples.jpetstore.web.spring; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.springframework.web.servlet.ModelAndView; import org.springframework.web.servlet.mvc.Controller; /** * @author Juergen Hoeller * @since 30.11.2...
zzh-simple-hr
Zjpetstore/src/org/springframework/samples/jpetstore/web/spring/SignoffController.java
Java
art
641
package org.springframework.samples.jpetstore.web.spring; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.springframework.samples.jpetstore.domain.Cart; import org.springframework.samples.jpetstore.domain.Item; import org.springframework.samples.jpetstore...
zzh-simple-hr
Zjpetstore/src/org/springframework/samples/jpetstore/web/spring/AddItemToCartController.java
Java
art
1,536
package org.springframework.samples.jpetstore.web.spring; import java.util.HashMap; import java.util.Map; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.springframework.beans.support.PagedListHolder; import org.springframework.samples.jpetstore.domain...
zzh-simple-hr
Zjpetstore/src/org/springframework/samples/jpetstore/web/spring/ViewProductController.java
Java
art
1,952
package org.springframework.samples.jpetstore.web.spring; import java.util.HashMap; import java.util.Map; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.springframework.samples.jpetstore.domain.logic.PetStoreFacade; import org.springframework.web.serv...
zzh-simple-hr
Zjpetstore/src/org/springframework/samples/jpetstore/web/spring/ListOrdersController.java
Java
art
1,129
package org.springframework.samples.jpetstore.web.spring; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.springframework.samples.jpetstore.domain.Order; import org.springframework.samples.jpetstore.domain.logic.PetStoreFacade; import org.springframework....
zzh-simple-hr
Zjpetstore/src/org/springframework/samples/jpetstore/web/spring/ViewOrderController.java
Java
art
1,284
package org.springframework.samples.jpetstore.web.spring; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.springframework.samples.jpetstore.domain.Cart; import org.springframework.web.servlet.ModelAndView; import org.springframework.web.servlet.mvc.Contro...
zzh-simple-hr
Zjpetstore/src/org/springframework/samples/jpetstore/web/spring/ViewCartController.java
Java
art
1,427
package org.springframework.samples.jpetstore.web.spring; import java.io.Serializable; import org.springframework.samples.jpetstore.domain.Order; /** * @author Juergen Hoeller * @since 01.12.2003 */ public class OrderForm implements Serializable { private final Order order = new Order(); private...
zzh-simple-hr
Zjpetstore/src/org/springframework/samples/jpetstore/web/spring/OrderForm.java
Java
art
816
package org.springframework.samples.jpetstore.web.spring; import java.io.Serializable; import org.springframework.beans.support.PagedListHolder; import org.springframework.samples.jpetstore.domain.Account; /** * @author Juergen Hoeller * @since 30.11.2003 */ public class UserSession implements Serializ...
zzh-simple-hr
Zjpetstore/src/org/springframework/samples/jpetstore/web/spring/UserSession.java
Java
art
672
package org.springframework.samples.jpetstore.web.spring; import java.util.HashMap; import java.util.Map; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.springframework.beans.support.PagedListHolder; import org.springframework.dao.DataIntegrityViolati...
zzh-simple-hr
Zjpetstore/src/org/springframework/samples/jpetstore/web/spring/AccountFormController.java
Java
art
4,225
package org.springframework.samples.jpetstore.web.spring; import java.util.HashMap; import java.util.Map; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.springframework.beans.support.PagedListHolder; import org.springframework.samples.jpetstore.domain...
zzh-simple-hr
Zjpetstore/src/org/springframework/samples/jpetstore/web/spring/ViewCategoryController.java
Java
art
2,160
package org.springframework.samples.jpetstore.web.spring; import java.util.HashMap; import java.util.Map; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.springframework.samples.jpetstore.domain.Item; import org.springframework.samples.jpetstore.domain...
zzh-simple-hr
Zjpetstore/src/org/springframework/samples/jpetstore/web/spring/ViewItemController.java
Java
art
1,064
package org.springframework.samples.jpetstore.web.spring; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.springframework.beans.support.PagedListHolder; import org.springframework.samples.jpetstore.domain.logic.PetStoreFacade; import org.springframework.u...
zzh-simple-hr
Zjpetstore/src/org/springframework/samples/jpetstore/web/spring/SearchProductsController.java
Java
art
1,939
package org.springframework.samples.jpetstore.web.spring; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.springframework.samples.jpetstore.domain.Accou...
zzh-simple-hr
Zjpetstore/src/org/springframework/samples/jpetstore/web/spring/OrderFormController.java
Java
art
4,026
package org.springframework.samples.jpetstore.web.spring; import java.util.Iterator; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.springframework.samples.jpetstore.domain.Cart; import org.springframework.samples.jpetstore.domain.CartItem; import org...
zzh-simple-hr
Zjpetstore/src/org/springframework/samples/jpetstore/web/spring/UpdateCartQuantitiesController.java
Java
art
1,393
package org.springframework.samples.jpetstore.web.spring; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.springframework.web.servlet.ModelAndView; import org.springframework.web.servlet.ModelAndViewDefiningException; import org.springframework.web.servle...
zzh-simple-hr
Zjpetstore/src/org/springframework/samples/jpetstore/web/spring/SignonInterceptor.java
Java
art
1,217
package org.springframework.samples.jpetstore.web.spring; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.springframework.samples.jpetstore.domain.Cart; import org.springframework.web.servlet.ModelAndView; import org.springframework.web.servlet.mvc.Contro...
zzh-simple-hr
Zjpetstore/src/org/springframework/samples/jpetstore/web/spring/RemoveItemFromCartController.java
Java
art
849
package org.springframework.samples.jpetstore.web.spring; import java.io.Serializable; import org.springframework.samples.jpetstore.domain.Account; /** * @author Juergen Hoeller * @since 01.12.2003 */ public class AccountForm implements Serializable { private Account account; private boolean new...
zzh-simple-hr
Zjpetstore/src/org/springframework/samples/jpetstore/web/spring/AccountForm.java
Java
art
869
package org.springframework.samples.jpetstore.service.client; import java.util.Iterator; import java.util.Map; import org.springframework.beans.factory.ListableBeanFactory; import org.springframework.context.support.FileSystemXmlApplicationContext; import org.springframework.samples.jpetstore.domain.LineItem; ...
zzh-simple-hr
Zjpetstore/src/org/springframework/samples/jpetstore/service/client/OrderServiceClient.java
Java
art
3,614
package org.springframework.samples.jpetstore.service; import org.springframework.remoting.jaxrpc.ServletEndpointSupport; import org.springframework.samples.jpetstore.domain.Order; import org.springframework.samples.jpetstore.domain.logic.OrderService; /** * JAX-RPC OrderService endpoint that simply delegates...
zzh-simple-hr
Zjpetstore/src/org/springframework/samples/jpetstore/service/JaxRpcOrderService.java
Java
art
2,445
package org.springframework.samples.jpetstore.domain; import java.io.Serializable; public class Category implements Serializable { /* Private Fields */ private String categoryId; private String name; private String description; /* JavaBeans Properties */ public String getCategoryId() {...
zzh-simple-hr
Zjpetstore/src/org/springframework/samples/jpetstore/domain/Category.java
Java
art
779
package org.springframework.samples.jpetstore.domain; import java.io.Serializable; public class CartItem implements Serializable { /* Private Fields */ private Item item; private int quantity; private boolean inStock; /* JavaBeans Properties */ public boolean isInStock() { return inStock...
zzh-simple-hr
Zjpetstore/src/org/springframework/samples/jpetstore/domain/CartItem.java
Java
art
866
package org.springframework.samples.jpetstore.domain; import java.io.Serializable; public class LineItem implements Serializable { /* Private Fields */ private int orderId; private int lineNumber; private int quantity; private String itemId; private double unitPrice; private Item item; ...
zzh-simple-hr
Zjpetstore/src/org/springframework/samples/jpetstore/domain/LineItem.java
Java
art
1,518
package org.springframework.samples.jpetstore.domain; import java.io.Serializable; public class Product implements Serializable { /* Private Fields */ private String productId; private String categoryId; private String name; private String description; /* JavaBeans Properties */ pub...
zzh-simple-hr
Zjpetstore/src/org/springframework/samples/jpetstore/domain/Product.java
Java
art
934
package org.springframework.samples.jpetstore.domain; import java.io.Serializable; public class Item implements Serializable { /* Private Fields */ private String itemId; private String productId; private double listPrice; private double unitCost; private int supplierId; private String ...
zzh-simple-hr
Zjpetstore/src/org/springframework/samples/jpetstore/domain/Item.java
Java
art
2,421
package org.springframework.samples.jpetstore.domain; import java.io.Serializable; public class Account implements Serializable { /* Private Fields */ private String username; private String password; private String email; private String firstName; private String lastName; private Strin...
zzh-simple-hr
Zjpetstore/src/org/springframework/samples/jpetstore/domain/Account.java
Java
art
3,213
package org.springframework.samples.jpetstore.domain; import java.io.Serializable; import java.util.Collections; import java.util.HashMap; import java.util.Iterator; import java.util.Map; import org.springframework.beans.support.PagedListHolder; public class Cart implements Serializable { /* Private F...
zzh-simple-hr
Zjpetstore/src/org/springframework/samples/jpetstore/domain/Cart.java
Java
art
2,327
package org.springframework.samples.jpetstore.domain; import java.io.Serializable; import java.util.ArrayList; import java.util.Date; import java.util.Iterator; import java.util.List; public class Order implements Serializable { /* Private Fields */ private int orderId; private String username; ...
zzh-simple-hr
Zjpetstore/src/org/springframework/samples/jpetstore/domain/Order.java
Java
art
6,263
package org.springframework.samples.jpetstore.domain.logic; import java.util.List; import org.springframework.samples.jpetstore.dao.AccountDao; import org.springframework.samples.jpetstore.dao.CategoryDao; import org.springframework.samples.jpetstore.dao.ItemDao; import org.springframework.samples.jpetstore.da...
zzh-simple-hr
Zjpetstore/src/org/springframework/samples/jpetstore/domain/logic/PetStoreImpl.java
Java
art
5,668
package org.springframework.samples.jpetstore.domain.logic; import org.springframework.samples.jpetstore.domain.Account; import org.springframework.validation.Errors; import org.springframework.validation.ValidationUtils; import org.springframework.validation.Validator; /** * @author Juergen Hoeller * @sin...
zzh-simple-hr
Zjpetstore/src/org/springframework/samples/jpetstore/domain/logic/AccountValidator.java
Java
art
1,418
package org.springframework.samples.jpetstore.domain.logic; import org.springframework.samples.jpetstore.domain.Order; import org.springframework.validation.Errors; import org.springframework.validation.ValidationUtils; import org.springframework.validation.Validator; /** * @author Juergen Hoeller * @since...
zzh-simple-hr
Zjpetstore/src/org/springframework/samples/jpetstore/domain/logic/OrderValidator.java
Java
art
2,848
package org.springframework.samples.jpetstore.domain.logic; import java.util.List; import org.springframework.samples.jpetstore.domain.Account; import org.springframework.samples.jpetstore.domain.Category; import org.springframework.samples.jpetstore.domain.Item; import org.springframework.samples.jpetstore.do...
zzh-simple-hr
Zjpetstore/src/org/springframework/samples/jpetstore/domain/logic/PetStoreFacade.java
Java
art
1,216
package org.springframework.samples.jpetstore.domain.logic; import java.lang.reflect.Method; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import org.springframework.aop.AfterReturningAdvice; import org.springframework.beans.factory.InitializingBean; import org.springf...
zzh-simple-hr
Zjpetstore/src/org/springframework/samples/jpetstore/domain/logic/SendOrderConfirmationEmailAdvice.java
Java
art
2,623
package org.springframework.samples.jpetstore.domain.logic; import org.springframework.samples.jpetstore.domain.Order; /** * Separate OrderService interface, implemented by PetStoreImpl * in addition to PetStoreFacade. * * <p>Mainly targeted at usage as remote service interface, * just exposing the <cod...
zzh-simple-hr
Zjpetstore/src/org/springframework/samples/jpetstore/domain/logic/OrderService.java
Java
art
597
package org.springframework.samples.jpetstore.dao; import java.util.List; import org.springframework.dao.DataAccessException; import org.springframework.samples.jpetstore.domain.Product; public interface ProductDao { List getProductListByCategory(String categoryId) throws DataAccessException; List s...
zzh-simple-hr
Zjpetstore/src/org/springframework/samples/jpetstore/dao/ProductDao.java
Java
art
457
package org.springframework.samples.jpetstore.dao.ibatis; import org.springframework.dao.DataAccessException; public class OracleSequenceDao extends SqlMapSequenceDao { /** * Get the next sequence using an Oracle thread-safe sequence * @param name Name is the name of the oracle sequence. * @retur...
zzh-simple-hr
Zjpetstore/src/org/springframework/samples/jpetstore/dao/ibatis/OracleSequenceDao.java
Java
art
625
package org.springframework.samples.jpetstore.dao.ibatis; import org.springframework.dao.DataAccessException; import org.springframework.samples.jpetstore.domain.LineItem; import org.springframework.samples.jpetstore.domain.Order; public class MsSqlOrderDao extends SqlMapOrderDao { /** * Special MS SQL...
zzh-simple-hr
Zjpetstore/src/org/springframework/samples/jpetstore/dao/ibatis/MsSqlOrderDao.java
Java
art
962
package org.springframework.samples.jpetstore.dao.ibatis; import java.io.Serializable; public class Sequence implements Serializable { /* Private Fields */ private String name; private int nextId; /* Constructors */ public Sequence() { } public Sequence(String name, int nextId) { ...
zzh-simple-hr
Zjpetstore/src/org/springframework/samples/jpetstore/dao/ibatis/Sequence.java
Java
art
625
package org.springframework.samples.jpetstore.dao.ibatis; import java.util.List; import org.springframework.dao.DataAccessException; import org.springframework.orm.ibatis.support.SqlMapClientDaoSupport; import org.springframework.samples.jpetstore.dao.CategoryDao; import org.springframework.samples.jpetstore.d...
zzh-simple-hr
Zjpetstore/src/org/springframework/samples/jpetstore/dao/ibatis/SqlMapCategoryDao.java
Java
art
756
package org.springframework.samples.jpetstore.dao.ibatis; import java.util.HashMap; import java.util.List; import java.util.Map; import org.springframework.dao.DataAccessException; import org.springframework.orm.ibatis.support.SqlMapClientDaoSupport; import org.springframework.samples.jpetstore.dao.ItemDao; ...
zzh-simple-hr
Zjpetstore/src/org/springframework/samples/jpetstore/dao/ibatis/SqlMapItemDao.java
Java
art
1,854
package org.springframework.samples.jpetstore.dao.ibatis; import java.util.List; import org.springframework.dao.DataAccessException; import org.springframework.orm.ibatis.support.SqlMapClientDaoSupport; import org.springframework.samples.jpetstore.dao.OrderDao; import org.springframework.samples.jpetstore.doma...
zzh-simple-hr
Zjpetstore/src/org/springframework/samples/jpetstore/dao/ibatis/SqlMapOrderDao.java
Java
art
1,711
package org.springframework.samples.jpetstore.dao.ibatis; import java.util.ArrayList; import java.util.List; import java.util.StringTokenizer; import org.springframework.dao.DataAccessException; import org.springframework.orm.ibatis.support.SqlMapClientDaoSupport; import org.springframework.samples.jpetstore....
zzh-simple-hr
Zjpetstore/src/org/springframework/samples/jpetstore/dao/ibatis/SqlMapProductDao.java
Java
art
1,529
package org.springframework.samples.jpetstore.dao.ibatis; import java.util.List; import org.springframework.dao.DataAccessException; import org.springframework.orm.ibatis.support.SqlMapClientDaoSupport; import org.springframework.samples.jpetstore.dao.AccountDao; import org.springframework.samples.jpetstore.do...
zzh-simple-hr
Zjpetstore/src/org/springframework/samples/jpetstore/dao/ibatis/SqlMapAccountDao.java
Java
art
2,437
package org.springframework.samples.jpetstore.dao.ibatis; import org.springframework.dao.DataAccessException; import org.springframework.dao.DataRetrievalFailureException; import org.springframework.orm.ibatis.support.SqlMapClientDaoSupport; public class SqlMapSequenceDao extends SqlMapClientDaoSupport { /...
zzh-simple-hr
Zjpetstore/src/org/springframework/samples/jpetstore/dao/ibatis/SqlMapSequenceDao.java
Java
art
1,176
package org.springframework.samples.jpetstore.dao; import java.util.List; import org.springframework.dao.DataAccessException; import org.springframework.samples.jpetstore.domain.Category; public interface CategoryDao { List getCategoryList() throws DataAccessException; Category getCategory(String cat...
zzh-simple-hr
Zjpetstore/src/org/springframework/samples/jpetstore/dao/CategoryDao.java
Java
art
363
package org.springframework.samples.jpetstore.dao; import java.util.List; import org.springframework.dao.DataAccessException; import org.springframework.samples.jpetstore.domain.Order; public interface OrderDao { List getOrdersByUsername(String username) throws DataAccessException; Order getOrder(in...
zzh-simple-hr
Zjpetstore/src/org/springframework/samples/jpetstore/dao/OrderDao.java
Java
art
428
package org.springframework.samples.jpetstore.dao; import java.util.List; import org.springframework.dao.DataAccessException; import org.springframework.samples.jpetstore.domain.Item; import org.springframework.samples.jpetstore.domain.Order; public interface ItemDao { public void updateQuantity(Order o...
zzh-simple-hr
Zjpetstore/src/org/springframework/samples/jpetstore/dao/ItemDao.java
Java
art
568
package org.springframework.samples.jpetstore.dao; import java.util.List; import org.springframework.dao.DataAccessException; import org.springframework.samples.jpetstore.domain.Account; public interface AccountDao { Account getAccount(String username) throws DataAccessException; Account getAccount(...
zzh-simple-hr
Zjpetstore/src/org/springframework/samples/jpetstore/dao/AccountDao.java
Java
art
581
<HTML><HEAD><TITLE>JPetStore Demo</TITLE> <META content="text/html; charset=windows-1252" http-equiv=Content-Type> </HEAD> <BODY bgColor=white> <TABLE background="images/bkg-topbar.gif" border=0 cellSpacing=0 cellPadding=5 width="100%"> <TBODY> <TR> <TD><A href="shop/index.do"><IMG border=0 sr...
zzh-simple-hr
Zjpetstore/webapp/index.html
HTML
art
2,380
<%@ include file="IncludeTop.jsp" %> <table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr><td valign="top" width="20%" align="left"> <table align="left" bgcolor="#008800" border="0" cellspacing="2" cellpadding="2"> <tr><td bgcolor="#FFFF88"> <a href="<c:url value="/shop/index.do"/>"><b><font color...
zzh-simple-hr
Zjpetstore/webapp/WEB-INF/jsp/struts/Cart.jsp
Java Server Pages
art
3,534
<%@ include file="IncludeTop.jsp" %> <table border="0" cellspacing="0" width="100%"> <tbody> <tr> <td valign="top" width="100%"> <table align="left" border="0" cellspacing="0" width="80%"> <tbody> <tr> <td valign="top"> <!-- SIDEBAR --> <...
zzh-simple-hr
Zjpetstore/webapp/WEB-INF/jsp/struts/index.jsp
Java Server Pages
art
3,027
<%@ include file="IncludeTop.jsp" %> <table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr><td valign="top" width="20%" align="left"> <table align="left" bgcolor="#008800" border="0" cellspacing="2" cellpadding="2"> <tr><td bgcolor="#FFFF88"> <a href="<c:url value="/shop/viewCart.do"/>"><b><font ...
zzh-simple-hr
Zjpetstore/webapp/WEB-INF/jsp/struts/Checkout.jsp
Java Server Pages
art
2,614
<p>&nbsp;</p> <table align="center"> <tr> <td> <a href="http://www.springframework.org"> <img border="0" align="center" src="../images/poweredBySpring.gif" alt="Powered by the Spring Framework"/> </a> </td> <td> <a href="http://www.ibatis.com"> <img border="0" align="center" src="....
zzh-simple-hr
Zjpetstore/webapp/WEB-INF/jsp/struts/IncludeBottom.jsp
Java Server Pages
art
480
<%@ include file="IncludeTop.jsp" %> <table align="left" bgcolor="#008800" border="0" cellspacing="2" cellpadding="2"> <tr><td bgcolor="#FFFF88"> <a href="<c:url value="/shop/index.do"/>"><b><font color="BLACK" size="2">&lt;&lt; Main Menu</font></b></a> </td></tr> <tr><td bgcolor="#FFFF88"> <%-- <html:link par...
zzh-simple-hr
Zjpetstore/webapp/WEB-INF/jsp/struts/ViewOrder.jsp
Java Server Pages
art
4,846
<%@ page contentType="text/html" %> <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> <%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %> <html><head><title>JPetStore Demo</title> <meta content="text/html; charset=windows-1252" http-equiv="Content-Type" /> <META HTTP-EQUIV="C...
zzh-simple-hr
Zjpetstore/webapp/WEB-INF/jsp/struts/IncludeTop.jsp
Java Server Pages
art
2,389
<%@ include file="IncludeTop.jsp" %> <table align="left" bgcolor="#008800" border="0" cellspacing="2" cellpadding="2"> <tr><td bgcolor="#FFFF88"> <a href="<c:url value="/shop/index.do"/>"><b><font color="BLACK" size="2"/>&lt;&lt; Main Menu</font></b></a> </td></tr> </table> <p> <center> <h2><c:out value="...
zzh-simple-hr
Zjpetstore/webapp/WEB-INF/jsp/struts/Category.jsp
Java Server Pages
art
1,241
<%@ include file="IncludeTop.jsp" %> <%@ taglib prefix="html" uri="http://jakarta.apache.org/struts/tags-html" %> <html:form action="/shop/newOrder.do" styleId="workingOrderForm" method="post" > <TABLE bgcolor="#008800" border=0 cellpadding=3 cellspacing=1 bgcolor="#FFFF88"> <TR bgcolor="#FFFF88"><TD colspan=2>...
zzh-simple-hr
Zjpetstore/webapp/WEB-INF/jsp/struts/NewOrderForm.jsp
Java Server Pages
art
2,368