Debian Codegraph @

docs/apiDocs/javax/xml/rpc/server/ServletEndpointContext.html

raw
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
2 <!--NewPage-->
3 <HTML>
4 <HEAD>
5 <!-- Generated by javadoc (build 1.4.2_08) on Sat Apr 22 18:57:16 PDT 2006 -->
6 <TITLE>
7 ServletEndpointContext (Axis API)
8 </TITLE>
9
10 <META NAME="keywords" CONTENT="javax.xml.rpc.server.ServletEndpointContext interface">
11
12 <LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../stylesheet.css" TITLE="Style">
13
14 <SCRIPT type="text/javascript">
15 function windowTitle()
16 {
17 parent.document.title="ServletEndpointContext (Axis API)";
18 }
19 </SCRIPT>
20
21 </HEAD>
22
23 <BODY BGCOLOR="white" onload="windowTitle();">
24
25
26 <!-- ========= START OF TOP NAVBAR ======= -->
27 <A NAME="navbar_top"><!-- --></A>
28 <A HREF="#skip-navbar_top" title="Skip navigation links"></A>
29 <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
30 <TR>
31 <TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
32 <A NAME="navbar_top_firstrow"><!-- --></A>
33 <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
34 <TR ALIGN="center" VALIGN="top">
35 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
36 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
37 <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
38 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/ServletEndpointContext.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
39 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
40 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
41 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
42 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
43 </TR>
44 </TABLE>
45 </TD>
46 <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
47 </EM>
48 </TD>
49 </TR>
50
51 <TR>
52 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
53 &nbsp;<A HREF="../../../../javax/xml/rpc/server/ServiceLifecycle.html" title="interface in javax.xml.rpc.server"><B>PREV CLASS</B></A>&nbsp;
54 &nbsp;NEXT CLASS</FONT></TD>
55 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
56 <A HREF="../../../../index.html" target="_top"><B>FRAMES</B></A> &nbsp;
57 &nbsp;<A HREF="ServletEndpointContext.html" target="_top"><B>NO FRAMES</B></A> &nbsp;
58 &nbsp;<SCRIPT type="text/javascript">
59 <!--
60 if(window==top) {
61 document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>');
62 }
63 //-->
64 </SCRIPT>
65 <NOSCRIPT>
66 <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>
67 </NOSCRIPT>
68
69 </FONT></TD>
70 </TR>
71 <TR>
72 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
73 SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
74 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
75 DETAIL:&nbsp;FIELD&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
76 </TR>
77 </TABLE>
78 <A NAME="skip-navbar_top"></A>
79 <!-- ========= END OF TOP NAVBAR ========= -->
80
81 <HR>
82 <!-- ======== START OF CLASS DATA ======== -->
83 <H2>
84 <FONT SIZE="-1">
85 javax.xml.rpc.server</FONT>
86 <BR>
87 Interface ServletEndpointContext</H2>
88 <DL>
89 <DT><B>All Known Implementing Classes:</B> <DD><A HREF="../../../../org/apache/axis/transport/http/ServletEndpointContextImpl.html" title="class in org.apache.axis.transport.http">ServletEndpointContextImpl</A></DD>
90 </DL>
91 <HR>
92 <DL>
93 <DT>public interface <B>ServletEndpointContext</B></DL>
94
95 <P>
96 The <code>ServletEndpointContext</code> provides an endpoint
97 context maintained by the underlying servlet container based
98 JAX-RPC runtime system. For service endpoints deployed on a
99 servlet container based JAX-RPC runtime system, the context
100 parameter in the <code>ServiceLifecycle.init</code> method is
101 required to be of the Java type
102 <code>javax.xml.rpc.server.ServletEndpointContext</code>.
103 <p>
104 A servlet container based JAX-RPC runtime system implements
105 the <code>ServletEndpointContext</code> interface. The JAX-RPC
106 runtime system is required to provide appropriate session,
107 message context, servlet context and user principal information
108 per method invocation on the endpoint class.
109 <P>
110
111 <P>
112 <DL>
113 <DT><B>Version:</B></DT>
114 <DD>1.0</DD>
115 </DL>
116 <HR>
117
118 <P>
119 <!-- ======== NESTED CLASS SUMMARY ======== -->
120
121
122 <!-- =========== FIELD SUMMARY =========== -->
123
124
125 <!-- ======== CONSTRUCTOR SUMMARY ======== -->
126
127
128 <!-- ========== METHOD SUMMARY =========== -->
129
130 <A NAME="method_summary"><!-- --></A>
131 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
132 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
133 <TD COLSPAN=2><FONT SIZE="+2">
134 <B>Method Summary</B></FONT></TD>
135 </TR>
136 <TR BGCOLOR="white" CLASS="TableRowColor">
137 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
138 <CODE>&nbsp;javax.servlet.http.HttpSession</CODE></FONT></TD>
139 <TD><CODE><B><A HREF="../../../../javax/xml/rpc/server/ServletEndpointContext.html#getHttpSession()">getHttpSession</A></B>()</CODE>
140
141 <BR>
142 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The <code>getHttpSession</code> method returns the current
143 HTTP session (as a <code>javax.servlet.http.HTTPSession</code>).</TD>
144 </TR>
145 <TR BGCOLOR="white" CLASS="TableRowColor">
146 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
147 <CODE>&nbsp;<A HREF="../../../../javax/xml/rpc/handler/MessageContext.html" title="interface in javax.xml.rpc.handler">MessageContext</A></CODE></FONT></TD>
148 <TD><CODE><B><A HREF="../../../../javax/xml/rpc/server/ServletEndpointContext.html#getMessageContext()">getMessageContext</A></B>()</CODE>
149
150 <BR>
151 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The method <code>getMessageContext</code> returns the
152 <code>MessageContext</code> targeted for this endpoint instance.</TD>
153 </TR>
154 <TR BGCOLOR="white" CLASS="TableRowColor">
155 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
156 <CODE>&nbsp;javax.servlet.ServletContext</CODE></FONT></TD>
157 <TD><CODE><B><A HREF="../../../../javax/xml/rpc/server/ServletEndpointContext.html#getServletContext()">getServletContext</A></B>()</CODE>
158
159 <BR>
160 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The method <code>getServletContext</code> returns the
161 <code>ServletContex</code>t associated with the web
162 application that contain this endpoint.</TD>
163 </TR>
164 <TR BGCOLOR="white" CLASS="TableRowColor">
165 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
166 <CODE>&nbsp;java.security.Principal</CODE></FONT></TD>
167 <TD><CODE><B><A HREF="../../../../javax/xml/rpc/server/ServletEndpointContext.html#getUserPrincipal()">getUserPrincipal</A></B>()</CODE>
168
169 <BR>
170 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns a <code>java.security.Principal</code> instance that
171 contains the name of the authenticated user for the current
172 method invocation on the endpoint instance.</TD>
173 </TR>
174 <TR BGCOLOR="white" CLASS="TableRowColor">
175 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
176 <CODE>&nbsp;boolean</CODE></FONT></TD>
177 <TD><CODE><B><A HREF="../../../../javax/xml/rpc/server/ServletEndpointContext.html#isUserInRole(java.lang.String)">isUserInRole</A></B>(java.lang.String&nbsp;s)</CODE>
178
179 <BR>
180 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
181 </TR>
182 </TABLE>
183 &nbsp;
184 <P>
185
186 <!-- ============ FIELD DETAIL =========== -->
187
188
189 <!-- ========= CONSTRUCTOR DETAIL ======== -->
190
191
192 <!-- ============ METHOD DETAIL ========== -->
193
194 <A NAME="method_detail"><!-- --></A>
195 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
196 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
197 <TD COLSPAN=1><FONT SIZE="+2">
198 <B>Method Detail</B></FONT></TD>
199 </TR>
200 </TABLE>
201
202 <A NAME="getMessageContext()"><!-- --></A><H3>
203 getMessageContext</H3>
204 <PRE>
205 public <A HREF="../../../../javax/xml/rpc/handler/MessageContext.html" title="interface in javax.xml.rpc.handler">MessageContext</A> <B>getMessageContext</B>()</PRE>
206 <DL>
207 <DD>The method <code>getMessageContext</code> returns the
208 <code>MessageContext</code> targeted for this endpoint instance.
209 This enables the service endpoint instance to acccess the
210 <code>MessageContext</code> propagated by request
211 <code>HandlerChain</code> (and its contained <code>Handler</code>
212 instances) to the target endpoint instance and to share any
213 SOAP message processing related context. The endpoint instance
214 can access and manipulate the <code>MessageContext</code>
215 and share the SOAP message processing related context with
216 the response <code>HandlerChain</code>.
217 <P>
218 <DD><DL>
219
220 <DT><B>Returns:</B><DD>MessageContext; If there is no associated
221 <code>MessageContext</code>, this method returns
222 <code>null</code>.
223 <DT><B>Throws:</B>
224 <DD><CODE>java.lang.IllegalStateException</CODE> - if this method is invoked outside a
225 remote method implementation by a service endpoint instance.</DL>
226 </DD>
227 </DL>
228 <HR>
229
230 <A NAME="getUserPrincipal()"><!-- --></A><H3>
231 getUserPrincipal</H3>
232 <PRE>
233 public java.security.Principal <B>getUserPrincipal</B>()</PRE>
234 <DL>
235 <DD>Returns a <code>java.security.Principal</code> instance that
236 contains the name of the authenticated user for the current
237 method invocation on the endpoint instance. This method returns
238 <code>null</code> if there is no associated principal yet.
239 The underlying JAX-RPC runtime system takes the responsibility
240 of providing the appropriate authenticated principal for a
241 remote method invocation on the service endpoint instance.
242 <P>
243 <DD><DL>
244
245 <DT><B>Returns:</B><DD>A <code>java.security.Principal</code> for the
246 authenticated principal associated with the current
247 invocation on the servlet endpoint instance;
248 Returns <code>null</code> if there no authenticated
249 user associated with a method invocation.</DL>
250 </DD>
251 </DL>
252 <HR>
253
254 <A NAME="getHttpSession()"><!-- --></A><H3>
255 getHttpSession</H3>
256 <PRE>
257 public javax.servlet.http.HttpSession <B>getHttpSession</B>()</PRE>
258 <DL>
259 <DD>The <code>getHttpSession</code> method returns the current
260 HTTP session (as a <code>javax.servlet.http.HTTPSession</code>).
261 When invoked by the service endpoint within a remote method
262 implementation, the <code>getHttpSession</code> returns the
263 HTTP session associated currently with this method invocation.
264 This method returns <code>null</code> if there is no HTTP
265 session currently active and associated with this service
266 endpoint. An endpoint class should not rely on an active
267 HTTP session being always there; the underlying JAX-RPC
268 runtime system is responsible for managing whether or not
269 there is an active HTTP session.
270 <p>
271 The getHttpSession method throws <code>JAXRPCException</code>
272 if invoked by an non HTTP bound endpoint.
273 <P>
274 <DD><DL>
275
276 <DT><B>Returns:</B><DD>The HTTP session associated with the current
277 invocation or <code>null</code> if there is no active session.
278 <DT><B>Throws:</B>
279 <DD><CODE><A HREF="../../../../javax/xml/rpc/JAXRPCException.html" title="class in javax.xml.rpc">JAXRPCException</A></CODE> - - If this method invoked by a non-HTTP bound
280 endpoints.</DL>
281 </DD>
282 </DL>
283 <HR>
284
285 <A NAME="getServletContext()"><!-- --></A><H3>
286 getServletContext</H3>
287 <PRE>
288 public javax.servlet.ServletContext <B>getServletContext</B>()</PRE>
289 <DL>
290 <DD>The method <code>getServletContext</code> returns the
291 <code>ServletContex</code>t associated with the web
292 application that contain this endpoint. According to
293 the Servlet specification, There is one context per web
294 application (installed as a WAR) per JVM . A servlet
295 based service endpoint is deployed as part of a web
296 application.
297 <P>
298 <DD><DL>
299
300 <DT><B>Returns:</B><DD>the current <code>ServletContext</code></DL>
301 </DD>
302 </DL>
303 <HR>
304
305 <A NAME="isUserInRole(java.lang.String)"><!-- --></A><H3>
306 isUserInRole</H3>
307 <PRE>
308 public boolean <B>isUserInRole</B>(java.lang.String&nbsp;s)</PRE>
309 <DL>
310 <DD><DL>
311 </DL>
312 </DD>
313 </DL>
314 <!-- ========= END OF CLASS DATA ========= -->
315 <HR>
316
317
318 <!-- ======= START OF BOTTOM NAVBAR ====== -->
319 <A NAME="navbar_bottom"><!-- --></A>
320 <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
321 <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
322 <TR>
323 <TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
324 <A NAME="navbar_bottom_firstrow"><!-- --></A>
325 <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
326 <TR ALIGN="center" VALIGN="top">
327 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
328 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
329 <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
330 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/ServletEndpointContext.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
331 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
332 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
333 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
334 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
335 </TR>
336 </TABLE>
337 </TD>
338 <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
339 </EM>
340 </TD>
341 </TR>
342
343 <TR>
344 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
345 &nbsp;<A HREF="../../../../javax/xml/rpc/server/ServiceLifecycle.html" title="interface in javax.xml.rpc.server"><B>PREV CLASS</B></A>&nbsp;
346 &nbsp;NEXT CLASS</FONT></TD>
347 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
348 <A HREF="../../../../index.html" target="_top"><B>FRAMES</B></A> &nbsp;
349 &nbsp;<A HREF="ServletEndpointContext.html" target="_top"><B>NO FRAMES</B></A> &nbsp;
350 &nbsp;<SCRIPT type="text/javascript">
351 <!--
352 if(window==top) {
353 document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>');
354 }
355 //-->
356 </SCRIPT>
357 <NOSCRIPT>
358 <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>
359 </NOSCRIPT>
360
361 </FONT></TD>
362 </TR>
363 <TR>
364 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
365 SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
366 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
367 DETAIL:&nbsp;FIELD&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
368 </TR>
369 </TABLE>
370 <A NAME="skip-navbar_bottom"></A>
371 <!-- ======== END OF BOTTOM NAVBAR ======= -->
372
373 <HR>
374 Copyright © 2005 Apache Web Services Project. All Rights Reserved.
375 </BODY>
376 </HTML>