1 23 24 package com.sun.enterprise.server.ondemand.entry; 25 26 import com.sun.enterprise.server.ServerContext; 27 28 29 41 public class EntryContext { 42 43 private Object context = null; 44 private int type = -1; 45 private ServerContext sc = null; 46 47 53 public EntryContext(Object context, int type) { 54 this.context = context; 55 this.type = type; 56 } 57 58 public int getEntryPointType() { 60 return this.type; 61 } 62 63 public void setEntryPointType (int type) { 65 this.type = type; 66 } 67 68 public Object get() { 70 return context; 71 } 72 73 public void setServerContext(ServerContext sc) { 76 this.sc = sc; 77 } 78 79 public ServerContext getServerContext() { 81 return this.sc; 82 } 83 84 public String toString() { 85 return "[ Entry context ] ...[ " + context + " ]"; 86 } 87 88 } 89 | Popular Tags |