eBooks from Bill Burke
All books and eBooks by Bill Burke:
Enterprise JavaBeans 3.0
Developing Enterprise Java Components
by Richard Mons... and Bill Burke
Chapter 1 CHAPTER 1 Introduction 1 This book is about Enterprise JavaBeans 3.0, the latest version of the Enterprise Java- Beans specification, and its counterpart, the new Java Persistence specification. Just as the Java platform has revolutionized the way we think about software develop- ment, the Enterprise JavaBeans (EJB) and Java Persistence specifications have revolu- tionized the way we think about developing mission-critical enterprise software. They combine server-side components with distributed object technologies, asyn- chronous messaging, web services, and persistence to greatly simplify the task of application development. It automatically takes into account many of the require- ments of business systems, including security, resource pooling, concurrency, and transactional integrity. This book shows you how to use Enterprise JavaBeans and Java Persistence to develop scalable, portable business systems. But before we can start talking about EJB itself, we’ll need a brief introduction to the technologies addressed by EJB and Java Persistence,
(2008)
RESTful Java with JAX-RS
by Bill Burke
s-maxage The s-maxage directive is the same as the max-age directive, but it specifies the maximum time a shared, intermediary cache (like a proxy) is allowed to hold the data. This directive allows you to have different expiration times than the client. Let’s take a look at a simple example of a response to see Cache-Control in action: HTTP/1.1 200 OK Content-Type: application/xml Cache-Control: private, no-store, max-age=300 ... In this example, the response is saying that only the client may cache the response. This response is valid for 300 seconds and must not be stored on disk. The JAX-RS specification provides javax.ws.rs.core.CacheControl, a simple class to represent the Cache-Control header: public class CacheControl { public CacheControl() {...} public static CacheControl valueOf(String value) throws IllegalArgumentException {...} public boolean isMustRevalidate() {...} public void setMustRevalidate(boolean mustRevalidate) {...} public boolean isProxyRevalidate() {...} public void setProxyRevalidate(boolean proxyRevalidate) {...} public int getMaxAge() {...} public void setMaxAge(int
(2009)

