File: WebContextImpl.java

package info (click to toggle)
libjboss-web-services-java 0.0%2Bsvn5660%2Bdak2-3
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 7,276 kB
  • sloc: java: 79,207; xml: 29; makefile: 19; sh: 16
file content (153 lines) | stat: -rw-r--r-- 4,770 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
/*
 * JBoss, Home of Professional Open Source.
 * Copyright 2006, Red Hat Middleware LLC, and individual contributors
 * as indicated by the @author tags. See the copyright.txt file in the
 * distribution for a full listing of individual contributors.
 *
 * This 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 2.1 of
 * the License, or (at your option) any later version.
 *
 * This software is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this software; if not, write to the Free
 * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
 * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
 */
package org.jboss.wsf.spi.annotation;

import java.lang.annotation.Annotation;

/**
 * Represents a {@link org.jboss.wsf.spi.annotation.WebContext} annotation
 * and reflects the annotation defult values. <br>
 * This implementation is used to provide a meta data representation (descriptor overrides) for the jboss EJB3 project.
 *
 * @author Heiko.Braun@jboss.com 
 */
public class WebContextImpl implements WebContext
{
   private String contextRoot = "";
   private String authmethod = "";
   private String[] virtualHosts = new String[] {};
   private String urlpattern = "";
   private String transportGuarantee  = "";
   private boolean securedWsdl = false;

   /**
    * The contextRoot element specifies the context root that the web service endpoint is deployed to.
    * If it is not specified it will be derived from the deployment short name.
    *
    * Applies to server side port components only.
    */
   public String contextRoot()
   {
      return this.contextRoot;
   };


   public void setContextRoot(String contextRoot)
   {
      this.contextRoot = contextRoot;
   }

   /**
    * The virtual hosts that the web service endpoint is deployed to.
    *
    * Applies to server side port components only.
    */
   public String[] virtualHosts(){
      return virtualHosts;
   };


   public void setVirtualHosts(String[] virtualHosts)
   {
      this.virtualHosts = virtualHosts;
   }

   /**
    * Relative path that is appended to the contextRoot to form fully qualified
    * endpoint address for the web service endpoint.
    *
    * Applies to server side port components only.
    */
   public String urlPattern() {
      return urlpattern;
   };


   public void setUrlpattern(String urlpattern)
   {
      this.urlpattern = urlpattern;
   }

   /**
    * The authMethod is used to configure the authentication mechanism for the web service.
    * As a prerequisite to gaining access to any web service which are protected by an authorization
    * constraint, a user must have authenticated using the configured mechanism.
    *
    * Legal values for this element are "BASIC", or "CLIENT-CERT".
    */
   public String authMethod()
   {
      return authmethod;
   };


   public void setAuthmethod(String authmethod)
   {
      this.authmethod = authmethod;
   }

   /**
    * The transportGuarantee specifies that the communication
    * between client and server should be NONE, INTEGRAL, or
    * CONFIDENTIAL. NONE means that the application does not require any
    * transport guarantees. A value of INTEGRAL means that the application
    * requires that the data sent between the client and server be sent in
    * such a way that it can't be changed in transit. CONFIDENTIAL means
    * that the application requires that the data be transmitted in a
    * fashion that prevents other entities from observing the contents of
    * the transmission. In most cases, the presence of the INTEGRAL or
    * CONFIDENTIAL flag will indicate that the use of SSL is required.
    */
   public String transportGuarantee()
   {
      return transportGuarantee;
   };


   public void setTransportGuarantee(String transportGuarantee)
   {      
      this.transportGuarantee = transportGuarantee;
   }

   /**
    * A secure endpoint does not secure wsdl access by default.
    * Explicitly setting secureWSDLAccess overrides this behaviour.
    *
    * Protect access to WSDL. See http://jira.jboss.org/jira/browse/JBWS-723
    */
   public boolean secureWSDLAccess()
   {
      return securedWsdl;
   };


   public void setSecuredWsdl(boolean securedWsdl)
   {
      this.securedWsdl = securedWsdl;
   }

   public Class<? extends Annotation> annotationType()
   {
      return WebContext.class;
   }

}