equal
deleted
inserted
replaced
2228 { |
2228 { |
2229 serverSocket.bind(endpoint, backlog); |
2229 serverSocket.bind(endpoint, backlog); |
2230 } |
2230 } |
2231 |
2231 |
2232 public InetAddress getInetAddress() { |
2232 public InetAddress getInetAddress() { |
2233 return serverSocket.getInetAddress(); |
2233 return AccessController.doPrivileged( |
|
2234 new PrivilegedAction<InetAddress>() { |
|
2235 @Override |
|
2236 public InetAddress run() { |
|
2237 return serverSocket.getInetAddress(); |
|
2238 } |
|
2239 }); |
2234 } |
2240 } |
2235 |
2241 |
2236 public int getLocalPort() { |
2242 public int getLocalPort() { |
2237 return serverSocket.getLocalPort(); |
2243 return serverSocket.getLocalPort(); |
2238 } |
2244 } |
2239 |
2245 |
2240 public SocketAddress getLocalSocketAddress() { |
2246 public SocketAddress getLocalSocketAddress() { |
2241 return serverSocket.getLocalSocketAddress(); |
2247 return AccessController.doPrivileged( |
|
2248 new PrivilegedAction<SocketAddress>() { |
|
2249 @Override |
|
2250 public SocketAddress run() { |
|
2251 return serverSocket.getLocalSocketAddress(); |
|
2252 } |
|
2253 }); |
2242 } |
2254 } |
2243 |
2255 |
2244 /** |
2256 /** |
2245 * Delays calling accept on the underlying server socket until the |
2257 * Delays calling accept on the underlying server socket until the |
2246 * remote service is bound in the registry. |
2258 * remote service is bound in the registry. |